fix: 修复评论回复计数逻辑,确保正确显示评论的回复数量

This commit is contained in:
2025-09-10 12:59:44 +08:00
parent c6e89c0b86
commit 6651de5858
4 changed files with 90 additions and 90 deletions

View File

@ -10,7 +10,7 @@ type CommentDto struct {
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
User UserDto `json:"user"` // 评论的
ReplyCount int64 `json:"reply_count"` // 回复数量
ReplyCount uint64 `json:"reply_count"` // 回复数量
LikeCount uint64 `json:"like_count"` // 点赞数量
IsLiked bool `json:"is_liked"` // 当前用户是否点赞
IsPrivate bool `json:"is_private"`