File

src/settings/dto/update-turo-user.dto.ts

Index

Properties

Properties

roleId
Type : number
Decorators :
@IsNotEmpty()
@ApiProperty({required: true})
userId
Type : string
Decorators :
@IsNotEmpty()
@IsString()
@ApiProperty({required: true})
import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsString } from "class-validator";

export class UpdateTuroUserDto {
  @IsNotEmpty()
  @IsString()
  @ApiProperty({ required: true })
  userId: string;

  @IsNotEmpty()
  @ApiProperty({ required: true })
  roleId: number;
}

results matching ""

    No results matching ""