File

src/profile/dto/grant-role.dto.ts

Index

Properties

Properties

roleName
Type : string
Decorators :
@ApiProperty({required: true})
@IsString()
userId
Type : string
Decorators :
@ApiProperty({required: true})
@IsString()
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;
}

results matching ""

    No results matching ""