mirror of https://github.com/ghostfolio/ghostfolio
4 changed files with 19 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||
import { IsNumber, IsString, Max, Min } from 'class-validator'; |
|||
|
|||
export class HoldingDto { |
|||
@IsNumber() |
|||
@Max(1) |
|||
@Min(0) |
|||
allocationInPercentage: number; |
|||
|
|||
@IsString() |
|||
name: string; |
|||
} |
|||
Loading…
Reference in new issue