This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsNumber, Min } from 'class-validator';
|
||||
|
||||
export class AdminUpdateOrderItemDto {
|
||||
@ApiProperty({ description: 'New quantity', minimum: 1 })
|
||||
@IsNumber()
|
||||
@Min(1)
|
||||
quantity: number;
|
||||
}
|
||||
Reference in New Issue
Block a user