| 1234567891011121314151617181920212223242526272829303132333435363738 |
- 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;
- }
|