实现博客评论

This commit is contained in:
2025-06-07 15:19:43 +08:00
parent 73e409ce84
commit accd5b8754
9 changed files with 123 additions and 23 deletions

View File

@@ -0,0 +1,10 @@
import { IsOptional, IsString, IsUUID } from "class-validator";
export class createBlogCommentDto {
@IsString({ message: '评论内容不能为空' })
content: string;
@IsOptional()
@IsUUID('4', { message: '父评论ID格式错误' })
parentId?: string;
}