1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-21 09:19:16 +08:00

89 lines
1.8 KiB
Go
Raw Normal View History

2022-09-23 16:33:55 +08:00
import { ReqPage, CommonModel } from '.';
export namespace App {
2022-09-23 16:33:55 +08:00
export interface App extends CommonModel {
name: string;
icon: string;
key: string;
tags: Tag[];
shortDesc: string;
author: string;
source: string;
type: string;
}
2022-09-23 16:33:55 +08:00
export interface AppDTO extends App {
versions: string[];
}
export interface Tag {
key: string;
name: string;
}
export interface AppResPage {
total: number;
canUpdate: boolean;
version: string;
items: App.App[];
tags: App.Tag[];
}
2022-09-23 16:33:55 +08:00
export interface AppDetail extends CommonModel {
appId: string;
icon: string;
2022-09-23 16:33:55 +08:00
version: string;
readme: string;
params: AppParams;
2022-09-23 16:33:55 +08:00
dockerCompose: string;
}
export interface AppReq extends ReqPage {
name: string;
2022-09-23 16:33:55 +08:00
tags: string[];
}
export interface AppParams {
formFields: FromField[];
}
export interface FromField {
type: string;
labelZh: string;
labelEn: string;
required: boolean;
default: any;
envKey: string;
2022-10-07 15:49:39 +08:00
key?: string;
}
export interface AppInstall {
appDetailId: number;
params: any;
}
export interface AppInstalled extends CommonModel {
2022-09-26 18:20:21 +08:00
name: string;
version: string;
appId: string;
appDetailId: string;
params: string;
status: string;
description: string;
message: string;
appName: string;
icon: string;
constainers: any[];
}
2022-09-26 18:20:21 +08:00
export interface AppInstalledOp {
installId: number;
operate: string;
}
2022-10-07 15:49:39 +08:00
export interface AppService {
label: string;
value: string;
}
}