feat: 更新评论和帖子模型,添加用户信息和原创标识,优化API请求和组件结构

This commit is contained in:
2025-07-28 06:22:07 +08:00
parent 5c20a310e3
commit d73ed493be
20 changed files with 260 additions and 181 deletions

View File

@ -1,4 +1,5 @@
import type { Label } from "@/models/label";
import type { User } from "./user";
export interface Post {
id: number;
@ -7,7 +8,9 @@ export interface Post {
cover: string | null; // 封面可以为空
type: "markdown" | "html" | "text";
labels: Label[] | null; // 标签可以为空
user: User
isPrivate: boolean;
isOriginal: boolean;
likeCount: number;
commentCount: number;
viewCount: number;