order
This commit is contained in:
@@ -26,15 +26,19 @@ export class CreateOrderItemDto {
|
||||
@IsNumber()
|
||||
unitPrice: number
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
discount: number
|
||||
|
||||
@ApiPropertyOptional({ example: 'توضیحات' })
|
||||
@IsString()
|
||||
content: string
|
||||
description: string
|
||||
|
||||
@ApiPropertyOptional({ example: [] })
|
||||
@IsArray()
|
||||
@IsString({ each: true })
|
||||
attachments: { url: string, type: string }[]
|
||||
}
|
||||
}
|
||||
|
||||
export class CreateOrderAsAdminDto {
|
||||
@ApiPropertyOptional({ example: 'توضیحات' })
|
||||
|
||||
Reference in New Issue
Block a user