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