mirror of
https://github.com/docmost/docmost.git
synced 2026-05-18 07:24:04 +08:00
Fix comment
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { IsUUID } from 'class-validator';
|
||||
|
||||
export class CommentsInput {
|
||||
export class PageIdDto {
|
||||
@IsUUID()
|
||||
pageId: string;
|
||||
}
|
||||
|
||||
export class SingleCommentInput {
|
||||
export class CommentIdDto {
|
||||
@IsUUID()
|
||||
id: string;
|
||||
commentId: string;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
import { IsJSON, IsOptional, IsString, IsUUID } from 'class-validator';
|
||||
|
||||
export class CreateCommentDto {
|
||||
@IsOptional()
|
||||
@IsUUID()
|
||||
id?: string;
|
||||
|
||||
@IsUUID()
|
||||
pageId: string;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { IsJSON, IsUUID } from 'class-validator';
|
||||
|
||||
export class UpdateCommentDto {
|
||||
@IsUUID()
|
||||
id: string;
|
||||
commentId: string;
|
||||
|
||||
@IsJSON()
|
||||
content: any;
|
||||
|
||||
Reference in New Issue
Block a user