mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-21 09:19:16 +08:00
43 lines
832 B
Go
43 lines
832 B
Go
|
import { ReqPage } from '.';
|
||
|
|
||
|
export namespace App {
|
||
|
export interface App {
|
||
|
name: string;
|
||
|
icon: string;
|
||
|
key: string;
|
||
|
tags: Tag[];
|
||
|
shortDesc: string;
|
||
|
author: string;
|
||
|
source: string;
|
||
|
type: string;
|
||
|
}
|
||
|
|
||
|
export interface Tag {
|
||
|
key: string;
|
||
|
name: string;
|
||
|
}
|
||
|
|
||
|
export interface AppResPage {
|
||
|
total: number;
|
||
|
canUpdate: boolean;
|
||
|
version: string;
|
||
|
items: App.App[];
|
||
|
tags: App.Tag[];
|
||
|
}
|
||
|
|
||
|
export interface AppDetail {
|
||
|
name: string;
|
||
|
icon: string;
|
||
|
description: string;
|
||
|
sourceLink: string;
|
||
|
versions: string[];
|
||
|
readme: string;
|
||
|
athor: string;
|
||
|
}
|
||
|
|
||
|
export interface AppReq extends ReqPage {
|
||
|
name: string;
|
||
|
types: string[];
|
||
|
}
|
||
|
}
|