2023-03-29 14:58:28 +08:00
|
|
|
import { CommonModel, ReqPage } from '.';
|
2023-04-02 16:54:00 +08:00
|
|
|
import { App } from './app';
|
2023-03-29 14:58:28 +08:00
|
|
|
export namespace Runtime {
|
|
|
|
export interface Runtime extends CommonModel {
|
|
|
|
name: string;
|
2023-09-25 17:50:14 +08:00
|
|
|
appDetailID: number;
|
2023-03-29 14:58:28 +08:00
|
|
|
image: string;
|
|
|
|
workDir: string;
|
|
|
|
dockerCompose: string;
|
|
|
|
env: string;
|
|
|
|
params: string;
|
|
|
|
type: string;
|
2023-04-02 16:54:00 +08:00
|
|
|
resource: string;
|
2023-04-03 17:47:23 +08:00
|
|
|
version: string;
|
2023-08-09 18:04:12 +08:00
|
|
|
status: string;
|
2023-09-25 17:50:14 +08:00
|
|
|
codeDir: string;
|
2023-09-28 15:28:21 +08:00
|
|
|
port: number;
|
2023-03-29 14:58:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface RuntimeReq extends ReqPage {
|
2023-04-03 17:47:23 +08:00
|
|
|
name?: string;
|
2023-04-06 00:09:58 +08:00
|
|
|
status?: string;
|
2023-09-25 17:50:14 +08:00
|
|
|
type?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface NodeReq {
|
|
|
|
codeDir: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface NodeScripts {
|
|
|
|
name: string;
|
|
|
|
script: string;
|
2023-03-29 14:58:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface RuntimeDTO extends Runtime {
|
2023-04-02 16:54:00 +08:00
|
|
|
appParams: App.InstallParams[];
|
2023-09-25 17:50:14 +08:00
|
|
|
appID: number;
|
2023-09-18 17:18:20 +08:00
|
|
|
source?: string;
|
2023-09-28 15:28:21 +08:00
|
|
|
path?: string;
|
2023-03-29 14:58:28 +08:00
|
|
|
}
|
2023-03-30 16:47:47 +08:00
|
|
|
|
|
|
|
export interface RuntimeCreate {
|
2023-04-02 16:54:00 +08:00
|
|
|
id?: number;
|
|
|
|
name: string;
|
2023-09-25 17:50:14 +08:00
|
|
|
appDetailID: number;
|
2023-04-02 16:54:00 +08:00
|
|
|
image: string;
|
|
|
|
params: object;
|
|
|
|
type: string;
|
|
|
|
resource: string;
|
2023-09-25 17:50:14 +08:00
|
|
|
appID?: number;
|
2023-04-02 16:54:00 +08:00
|
|
|
version?: string;
|
2023-08-28 22:18:15 +08:00
|
|
|
rebuild?: boolean;
|
2023-09-18 17:18:20 +08:00
|
|
|
source?: string;
|
2023-09-25 17:50:14 +08:00
|
|
|
codeDir?: string;
|
2023-09-28 15:28:21 +08:00
|
|
|
port?: number;
|
2023-04-02 16:54:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface RuntimeUpdate {
|
2023-03-30 16:47:47 +08:00
|
|
|
name: string;
|
2023-09-25 17:50:14 +08:00
|
|
|
appDetailID: number;
|
2023-03-30 16:47:47 +08:00
|
|
|
image: string;
|
|
|
|
params: object;
|
|
|
|
type: string;
|
|
|
|
resource: string;
|
2023-09-25 17:50:14 +08:00
|
|
|
appID?: number;
|
2023-03-30 16:47:47 +08:00
|
|
|
version?: string;
|
2023-08-28 22:18:15 +08:00
|
|
|
rebuild?: boolean;
|
2023-03-30 16:47:47 +08:00
|
|
|
}
|
2023-03-31 14:02:28 +08:00
|
|
|
|
|
|
|
export interface RuntimeDelete {
|
|
|
|
id: number;
|
2023-09-25 17:50:14 +08:00
|
|
|
forceDelete: boolean;
|
2023-03-31 14:02:28 +08:00
|
|
|
}
|
2023-09-26 22:50:16 +08:00
|
|
|
|
|
|
|
export interface RuntimeOperate {
|
|
|
|
ID: number;
|
|
|
|
operate: string;
|
|
|
|
}
|
2023-03-29 14:58:28 +08:00
|
|
|
}
|