feat: 添加评论功能,包括评论输入、评论列表和评论项组件,支持层级深度和私密评论

This commit is contained in:
2025-07-31 08:03:19 +08:00
parent 92c2a58e80
commit 94aa4f1b1f
23 changed files with 303 additions and 53 deletions

15
web/src/models/common.ts Normal file
View File

@ -0,0 +1,15 @@
export interface PaginationParams {
orderBy: OrderBy
desc: boolean
page: number
size: number
}
export enum OrderBy {
CreatedAt = 'created_at',
UpdatedAt = 'updated_at',
Heat = 'heat',
CommentCount = 'comment_count',
LikeCount = 'like_count',
ViewCount = 'view_count',
}