38 lines
605 B
TypeScript
38 lines
605 B
TypeScript
![]() |
export interface Article {
|
||
|
id: number;
|
||
|
title: string;
|
||
|
image: string;
|
||
|
intro: string;
|
||
|
visit: number;
|
||
|
collect: boolean;
|
||
|
createTime: string;
|
||
|
}
|
||
|
|
||
|
export interface ArticleListParams {
|
||
|
cid?: 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: Next
|
||
|
// news: News[]
|
||
|
}
|
||
|
|
||
|
export interface ArticleDetailParams {
|
||
|
id: string;
|
||
|
}
|