update
This commit is contained in:
6
app/_types/album.ts
Normal file
6
app/_types/album.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export interface Album {
|
||||
id: number;
|
||||
name: string;
|
||||
path: string;
|
||||
uri: string;
|
||||
}
|
45
app/_types/article.ts
Normal file
45
app/_types/article.ts
Normal 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
13
app/_types/base.ts
Normal 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[];
|
||||
}
|
Reference in New Issue
Block a user