File
|
ids
|
Type : number[]
|
Decorators :
@IsNotEmpty() @IsNumber({}, {each: true}) @ApiProperty({required: true})
|
|
|
|
userId
|
Type : string
|
Decorators :
@IsNotEmpty() @IsString() @ApiProperty({required: true})
|
|
|
import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsNumber, IsString } from "class-validator";
export class BulkDeleteBUUserDto {
@IsNotEmpty()
@IsString()
@ApiProperty({ required: true })
userId: string;
@IsNotEmpty()
@IsNumber({}, { each: true })
@ApiProperty({ required: true })
ids: number[];
}