feat:移植工程
This commit is contained in:
66
src/types/blog.ts
Normal file
66
src/types/blog.ts
Normal file
@@ -0,0 +1,66 @@
|
||||
export interface IBlog {
|
||||
id: number;
|
||||
title: string;
|
||||
topValue: number;
|
||||
isGreat: boolean;
|
||||
categoryId: number;
|
||||
category: string;
|
||||
summary: string;
|
||||
content: string;
|
||||
wordCount: number;
|
||||
readDuration: number;
|
||||
visitCount: number;
|
||||
createTime: string;
|
||||
updateTime: string;
|
||||
}
|
||||
|
||||
export interface INewBlog {
|
||||
id: number;
|
||||
title: string;
|
||||
topValue: number;
|
||||
isGreat: boolean;
|
||||
category: string;
|
||||
content: string;
|
||||
}
|
||||
|
||||
export interface IQueryBlog {
|
||||
category?: string;
|
||||
title?: string;
|
||||
year?: number;
|
||||
}
|
||||
|
||||
export interface IBasicBlog {
|
||||
category: string;
|
||||
topValue: number;
|
||||
isGreat: boolean;
|
||||
wordCount: number;
|
||||
readDuration: number;
|
||||
visitCount: number;
|
||||
createTime: string;
|
||||
updateTime: string;
|
||||
}
|
||||
|
||||
export interface IBlogCategory {
|
||||
name: string;
|
||||
count: number;
|
||||
}
|
||||
|
||||
export interface IBlogStats {
|
||||
blogCount: number;
|
||||
categoryCount: number;
|
||||
wordCount: number;
|
||||
}
|
||||
|
||||
export interface IBlogLatest {
|
||||
id: number;
|
||||
title: string;
|
||||
}
|
||||
|
||||
export interface IBlogVisit {
|
||||
ip: string;
|
||||
os: string;
|
||||
browser: string;
|
||||
uri: string;
|
||||
title: string;
|
||||
visitTime: string;
|
||||
}
|
||||
Reference in New Issue
Block a user