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-04-02 16:54:00 +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-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-03-29 14:58:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface RuntimeDTO extends Runtime {
|
2023-04-02 16:54:00 +08:00
|
|
|
appParams: App.InstallParams[];
|
|
|
|
appId: number;
|
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;
|
|
|
|
appDetailId: number;
|
|
|
|
image: string;
|
|
|
|
params: object;
|
|
|
|
type: string;
|
|
|
|
resource: string;
|
|
|
|
appId?: number;
|
|
|
|
version?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface RuntimeUpdate {
|
2023-03-30 16:47:47 +08:00
|
|
|
name: string;
|
|
|
|
appDetailId: number;
|
|
|
|
image: string;
|
|
|
|
params: object;
|
|
|
|
type: string;
|
|
|
|
resource: string;
|
|
|
|
appId?: number;
|
|
|
|
version?: string;
|
|
|
|
}
|
2023-03-31 14:02:28 +08:00
|
|
|
|
|
|
|
export interface RuntimeDelete {
|
|
|
|
id: number;
|
|
|
|
}
|
2023-03-29 14:58:28 +08:00
|
|
|
}
|