2022-09-23 16:33:55 +08:00
|
|
|
import { ReqPage, CommonModel } from '.';
|
2022-09-22 16:16:04 +08:00
|
|
|
|
|
|
|
export namespace App {
|
2022-09-23 16:33:55 +08:00
|
|
|
export interface App extends CommonModel {
|
2022-09-22 16:16:04 +08:00
|
|
|
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[];
|
|
|
|
}
|
|
|
|
|
2022-09-22 16:16:04 +08:00
|
|
|
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;
|
2022-09-22 16:16:04 +08:00
|
|
|
icon: string;
|
2022-09-23 16:33:55 +08:00
|
|
|
version: string;
|
2022-09-22 16:16:04 +08:00
|
|
|
readme: string;
|
2022-09-23 16:33:55 +08:00
|
|
|
formFields: string;
|
|
|
|
dockerCompose: string;
|
2022-09-22 16:16:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface AppReq extends ReqPage {
|
|
|
|
name: string;
|
2022-09-23 16:33:55 +08:00
|
|
|
tags: string[];
|
2022-09-22 16:16:04 +08:00
|
|
|
}
|
|
|
|
}
|