import { ApiProperty } from '@nestjs/swagger';
import { isNotEmpty, IsNotEmpty, IsNumber, IsString } from 'class-validator';
import { CreateDto } from 'src/common/dto/create.dto';
export class DeleteDto {
  @ApiProperty({
    description: '需要删除的id，可以为数组或单个数字',
    default: [1],
  })
  @IsNotEmpty({ message: '删除的id不可为空' })
  id: [number] | number;
}
