This commit is contained in:
2026-02-10 12:00:07 +03:30
parent 280815dce3
commit 5fb1c63c4c
10 changed files with 31 additions and 25 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ class AddItemToCartDto {
@ApiProperty({ description: 'Product ID' })
@IsNotEmpty()
@IsString()
productId!: string;
variantId!: string;
}
export class BulkAddItemsToCartDto {
@@ -21,8 +21,8 @@ export class BulkAddItemsToCartDto {
description: 'Array of items to add to cart',
type: [AddItemToCartDto],
example: [
{ productId: 'product-123', quantity: 2 },
{ productId: 'product-456', quantity: 1 },
{ variantId: 'product-123', quantity: 2 },
{ productId: 'product-456', quantity: 1 },
],
})
@IsNotEmpty()