From b0bfc153bf3c9aa430ee6a86588648cdd1c27132 Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期四, 12 六月 2025 11:36:08 +0800 Subject: [PATCH] update: 点赞事件、收藏事件 --- types/index.ts | 76 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 76 insertions(+), 0 deletions(-) diff --git a/types/index.ts b/types/index.ts index 27e31d1..f214c6d 100644 --- a/types/index.ts +++ b/types/index.ts @@ -228,4 +228,80 @@ createBy: string; createTime: string; updateBy: string | null; + liked: boolean; + collected: boolean; + voLikeCount: number; + voCollectCount: number; + voCommentCount: number; } + + +/** + * 评论 + */ +export interface CommentDTO { + /** 评论编号 */ + id?: number; + + /** 父评论id */ + parentId?: number; + + /** 评论内容 */ + content?: string; + + /** 被评论帖子id */ + filmId?: number; + + /** 状态(0禁用,1启用) */ + state?: boolean; + + /** 逻辑删除(0正常,1删除) */ + deleted?: boolean; + + /** 评论用户id */ + createBy?: string; + + /** 评论用户名称 */ + commentUserName?: string; + + /** 用户头像 */ + picture?: string; + + /** 等级(Lv6) */ + level?: string; + + /** 是否点赞 */ + isLike?: boolean; + + /** 点赞数量 */ + likeCount?: number; // Long 对应 number + + /** 回复数量 */ + repliesCount?: number; + + /** 评论深度 */ + depth?: number; + + /** 创建时间 */ + createTime?: string; // LocalDateTime 转为 ISO 字符串 + + /** 更新时间 */ + updateTime?: string; + + /** 子评论 */ + child?: CommentDTO[]; + /** + * 图片列表 + */ + fileList?:string[]; + + filmPictures?:string; + + } + + interface FileItem { + name: string; + size: number; + url: string; + status: string; + } \ No newline at end of file -- Gitblit v1.9.3