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

121 lines
2.4 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 {
2022-11-02 15:19:14 +08:00
name?: string;
tags?: string[];
type?: 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 ChangePort {
key: string;
name: string;
port: number;
}
export interface AppInstalled extends CommonModel {
2022-09-26 18:20:21 +08:00
name: string;
appId: string;
appDetailId: string;
2022-10-12 18:57:22 +08:00
env: string;
status: string;
description: string;
message: string;
icon: string;
2022-10-12 18:57:22 +08:00
canUpdate: boolean;
app: App;
}
2022-09-26 18:20:21 +08:00
export interface AppInstalledOp {
installId: number;
operate: string;
2022-10-13 16:46:38 +08:00
backupId?: number;
2022-10-13 18:56:53 +08:00
detailId?: number;
2022-09-26 18:20:21 +08:00
}
2022-10-07 15:49:39 +08:00
2022-10-28 17:04:57 +08:00
export interface AppInstalledSearch {
type: string;
}
2022-10-07 15:49:39 +08:00
export interface AppService {
label: string;
value: string;
}
2022-10-12 18:57:22 +08:00
export interface AppBackupReq extends ReqPage {
appInstallId: number;
}
export interface AppBackupDelReq {
ids: number[];
}
export interface AppBackup extends CommonModel {
name: string;
path: string;
appInstallId: string;
appDetail: AppDetail;
}
2022-10-13 18:56:53 +08:00
export interface VersionDetail {
version: string;
detailId: number;
}
}