Files
gitmost/server/src/core/comment/dto/create-comment.dto.ts
Philipinho 4cb7a56f65 feat: comments
* create comment
* reply to comment thread
* edit comment
* delete comment
* resolve comment
2023-11-09 16:52:34 +00:00

22 lines
318 B
TypeScript

import { IsJSON, IsOptional, IsString, IsUUID } from 'class-validator';
export class CreateCommentDto {
@IsOptional()
@IsUUID()
id?: string;
@IsUUID()
pageId: string;
@IsJSON()
content: any;
@IsOptional()
@IsString()
selection: string;
@IsOptional()
@IsUUID()
parentCommentId: string;
}