feat: 添加评论功能,重构评论输入和列表组件,支持多种目标类型,更新国际化文本
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 18s

This commit is contained in:
2025-09-07 23:56:25 +08:00
parent 38584e164e
commit 6237cddc87
16 changed files with 235 additions and 57 deletions

View File

@ -3,6 +3,7 @@ import { CreateCommentRequest, UpdateCommentRequest, Comment } from '@/models/co
import type { PaginationParams } from '@/models/common'
import { OrderBy } from '@/models/common'
import type { BaseResponse } from '@/models/resp'
import { TargetType } from '@/models/types'
export async function createComment(
@ -24,7 +25,7 @@ export async function deleteComment(id: number): Promise<void> {
}
export interface ListCommentsParams {
targetType: 'post' | 'page'
targetType: TargetType
targetId: number
depth?: number
orderBy?: OrderBy