update entity id

This commit is contained in:
2026-02-05 10:08:37 +03:30
parent d4ae03fa4f
commit 068286e505
37 changed files with 185 additions and 209 deletions
+3 -3
View File
@@ -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: [
{
+1 -1
View File
@@ -10,5 +10,5 @@ export class UpdateOrderAsAdminDto extends PartialType(OmitType(CreateOrderAsAdm
export class UpdateOrCreateOrderItem extends CreateOrderItemDtoAsAdmin {
@ApiProperty()
@IsNumber()
id: number
id: string
}