src/profile/dto/grant-role.dto.ts
Properties |
| roleName |
Type : string
|
Decorators :
@ApiProperty({required: true})
|
|
Defined in src/profile/dto/grant-role.dto.ts:7
|
| userId |
Type : string
|
Decorators :
@ApiProperty({required: true})
|
|
Defined in src/profile/dto/grant-role.dto.ts:11
|
import { ApiProperty } from "@nestjs/swagger";
import { IsString } from "class-validator";
export class GrantRoleDto {
@ApiProperty({ required: true })
@IsString()
roleName: string;
@ApiProperty({ required: true })
@IsString()
userId: string;
}