|
|
@ -8,12 +8,10 @@ import {
|
|
|
|
import { Transform, TransformFnParams } from 'class-transformer';
|
|
|
|
import { Transform, TransformFnParams } from 'class-transformer';
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
IsArray,
|
|
|
|
IsArray,
|
|
|
|
IsBoolean,
|
|
|
|
|
|
|
|
IsEnum,
|
|
|
|
IsEnum,
|
|
|
|
IsISO8601,
|
|
|
|
IsISO8601,
|
|
|
|
IsNumber,
|
|
|
|
IsNumber,
|
|
|
|
IsOptional,
|
|
|
|
IsOptional,
|
|
|
|
IsPositive,
|
|
|
|
|
|
|
|
IsString,
|
|
|
|
IsString,
|
|
|
|
Min
|
|
|
|
Min
|
|
|
|
} from 'class-validator';
|
|
|
|
} from 'class-validator';
|
|
|
@ -56,7 +54,7 @@ export class UpdateOrderDto {
|
|
|
|
id: string;
|
|
|
|
id: string;
|
|
|
|
|
|
|
|
|
|
|
|
@IsNumber()
|
|
|
|
@IsNumber()
|
|
|
|
@IsPositive()
|
|
|
|
@Min(0)
|
|
|
|
quantity: number;
|
|
|
|
quantity: number;
|
|
|
|
|
|
|
|
|
|
|
|
@IsString()
|
|
|
|
@IsString()
|
|
|
@ -70,6 +68,6 @@ export class UpdateOrderDto {
|
|
|
|
type: Type;
|
|
|
|
type: Type;
|
|
|
|
|
|
|
|
|
|
|
|
@IsNumber()
|
|
|
|
@IsNumber()
|
|
|
|
@IsPositive()
|
|
|
|
@Min(0)
|
|
|
|
unitPrice: number;
|
|
|
|
unitPrice: number;
|
|
|
|
}
|
|
|
|
}
|
|
|
|