File

src/businessUnit/dto/bulk-delete-bu-user.dto.ts

Index

Properties

Properties

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[];
}

results matching ""

    No results matching ""