style: 增加应用商店列表和同步功能
This commit is contained in:
committed by
zhengkunwang223
parent
12dc630c89
commit
367623293c
42
frontend/src/api/interface/app.ts
Normal file
42
frontend/src/api/interface/app.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
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[];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user