This commit is contained in:
quantulr
2023-11-06 17:27:50 +08:00
parent b6a722fa79
commit a8b1ad286d
123 changed files with 491 additions and 428 deletions

6
app/_types/album.ts Normal file
View File

@ -0,0 +1,6 @@
export interface Album {
id: number;
name: string;
path: string;
uri: string;
}

45
app/_types/article.ts Normal file
View File

@ -0,0 +1,45 @@
export interface Article {
id: number;
title: string;
image: string;
intro: string;
visit: number;
collect: boolean;
createTime: string;
}
export interface ArticleListParams {
cid?: string;
pageSize?: number;
pageNo?: number;
sort?: string;
}
export interface ArticleDetail {
id: number;
cid: number;
category: string;
title: string;
intro: string;
summary: string;
image: string;
content: string;
author: string;
visit: number;
sort: number;
isCollect: number;
createTime: string;
updateTime: string;
prev?: Prev;
next?: Prev;
// news: News[]
}
export interface Prev {
id: string;
title: string;
}
export interface ArticleDetailParams {
id: string;
}

13
app/_types/base.ts Normal file
View File

@ -0,0 +1,13 @@
export interface BaseResponse<T> {
code: number;
msg: string;
data: T;
}
export interface PageData<T> {
count: number;
pageNo: number;
pageSize: number;
extend: any;
lists: T[];
}