src/settings/dto/update-turo-user.dto.ts
Properties |
| roleId |
Type : number
|
Decorators :
@IsNotEmpty()
|
|
Defined in src/settings/dto/update-turo-user.dto.ts:12
|
| userId |
Type : string
|
Decorators :
@IsNotEmpty()
|
|
Defined in src/settings/dto/update-turo-user.dto.ts:8
|
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;
}