update entity id
This commit is contained in:
@@ -14,9 +14,9 @@ import { IAttachment, IField, OrderStatusEnum } from '../interface/order.interfa
|
||||
|
||||
|
||||
export class CreateOrderItemAsUserDto {
|
||||
@IsInt()
|
||||
@IsString()
|
||||
@ApiProperty()
|
||||
productId: number;
|
||||
productId: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
@@ -73,7 +73,7 @@ export class CreateOrderAsUSerDto {
|
||||
@ApiProperty({
|
||||
isArray: true, type: [CreateOrderItemAsUserDto], example: [
|
||||
{
|
||||
productId: 1,
|
||||
productId: 'sd4',
|
||||
quantity: 100,
|
||||
attributes: [
|
||||
{
|
||||
|
||||
@@ -10,5 +10,5 @@ export class UpdateOrderAsAdminDto extends PartialType(OmitType(CreateOrderAsAdm
|
||||
export class UpdateOrCreateOrderItem extends CreateOrderItemDtoAsAdmin {
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
id: number
|
||||
id: string
|
||||
}
|
||||
Reference in New Issue
Block a user