* create comment * reply to comment thread * edit comment * delete comment * resolve comment
22 lines
318 B
TypeScript
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;
|
|
}
|