import { Allow, IsInt, IsString } from 'class-validator'; import { Expose } from 'class-transformer'; export class CreateBotDto { @IsInt() @Expose() botId:number; @Allow() @Expose() username: string; @Allow() @Expose() name: string; @IsString() @Expose() token: string; @IsInt() @Expose() status:number; @Allow() @Expose() description:string; } export class UpdateBotDto extends CreateBotDto { @IsInt() @Expose() id: number; } export class DeleteBotDto { @IsInt() @Expose() id: number; }