feat:移植工程

This commit is contained in:
2025-06-10 16:20:21 +08:00
commit 829df0b1d1
356 changed files with 43395 additions and 0 deletions

66
src/types/blog.ts Normal file
View 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;
}