src/user/dto/subscribe-user.dto.ts
Properties |
| fundId |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Defined in src/user/dto/subscribe-user.dto.ts:7
|
| instrumentId |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Defined in src/user/dto/subscribe-user.dto.ts:16
|
| isSubscribed |
Type : boolean
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Defined in src/user/dto/subscribe-user.dto.ts:11
|
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;
}