From 58d77fc67fe61902544bab2b3140de3cd34a484b Mon Sep 17 00:00:00 2001 From: kevin-asprec Date: Wed, 6 May 2026 02:31:03 +0800 Subject: [PATCH] fix: add missing CreateCommentDto for ticket comments --- src/ticket/dto/create-comment.dto.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/ticket/dto/create-comment.dto.ts diff --git a/src/ticket/dto/create-comment.dto.ts b/src/ticket/dto/create-comment.dto.ts new file mode 100644 index 0000000..eb9207d --- /dev/null +++ b/src/ticket/dto/create-comment.dto.ts @@ -0,0 +1,19 @@ +import { + IsString, + IsOptional, + IsArray, + MinLength, + MaxLength, +} from 'class-validator'; + +export class CreateCommentDto { + @IsString() + @MinLength(1) + @MaxLength(5000) + content: string; + + @IsOptional() + @IsArray() + @IsString({ each: true }) + files?: string[]; +}