Files
caszl-next/app/types/article.ts
quantulr 73bc779168 init
2023-10-27 17:29:50 +08:00

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;
}