mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-27 03:26:29 +00:00
✨ feat: 添加评论功能,重构评论输入和列表组件,支持多种目标类型,更新国际化文本
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 18s
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 18s
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user