cart
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user