This commit is contained in:
2026-02-09 15:47:17 +03:30
parent 65b937d662
commit 8c9e7053f5
10 changed files with 90 additions and 123 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ class AddItemToCartDto {
@ApiProperty({ description: 'Product ID' })
@IsNotEmpty()
@IsString()
foodId!: string;
productId!: string;
}
export class BulkAddItemsToCartDto {
@@ -21,8 +21,8 @@ export class BulkAddItemsToCartDto {
description: 'Array of items to add to cart',
type: [AddItemToCartDto],
example: [
{ foodId: 'product-123', quantity: 2 },
{ foodId: 'product-456', quantity: 1 },
{ productId: 'product-123', quantity: 2 },
{ productId: 'product-456', quantity: 1 },
],
})
@IsNotEmpty()