fix: add missing CreateCommentDto for ticket comments
This commit is contained in:
19
src/ticket/dto/create-comment.dto.ts
Normal file
19
src/ticket/dto/create-comment.dto.ts
Normal file
@@ -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[];
|
||||
}
|
||||
Reference in New Issue
Block a user