19 lines
285 B
TypeScript
19 lines
285 B
TypeScript
import { IsInt, IsOptional, IsString, Max, Min } from 'class-validator';
|
|
|
|
export class CreateAiResponseDto {
|
|
@IsString()
|
|
content: string;
|
|
|
|
@IsOptional()
|
|
@IsInt()
|
|
@Min(1)
|
|
@Max(100)
|
|
week?: number;
|
|
|
|
@IsOptional()
|
|
@IsInt()
|
|
@Min(1)
|
|
@Max(100)
|
|
contextWeek?: number;
|
|
}
|