File

src/user/dto/subscribe-user.dto.ts

Index

Properties

Properties

fundId
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
instrumentId
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsOptional()
isSubscribed
Type : boolean
Decorators :
@ApiProperty({type: 'string'})
@IsBoolean()
import { ApiProperty } from "@nestjs/swagger";
import { IsBoolean, IsOptional, IsString } from "class-validator";

export class SubscribeUserDto {
  @ApiProperty({ type: "string" })
  @IsString()
  fundId: string;

  @ApiProperty({ type: "string" })
  @IsBoolean()
  isSubscribed: boolean;

  @ApiProperty({ type: "string" })
  @IsString()
  @IsOptional()
  instrumentId: string;
}

results matching ""

    No results matching ""