From 3e340d68d05f662ecffbc66242b6392707e49465 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 8 Nov 2025 00:42:31 +0100 Subject: [PATCH] Added AddProductToBasket HTTP DTO --- basket/dto/basket.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/basket/dto/basket.go b/basket/dto/basket.go index 2f7575e..eab4dfe 100644 --- a/basket/dto/basket.go +++ b/basket/dto/basket.go @@ -26,6 +26,16 @@ type GetBasketItemsResponseDTO struct { UpdatedAt time.Duration `json:"updated_at,omitempty"` } +type AddProductToBasketRequestDTO struct { + BasketID string `json:"basket_id"` + ProductID string `json:"product_id"` + Quantity int `json:"quantity"` +} + +type AddProductToBasketResponseDTO struct { + BasketID string `json:"basket_id"` +} + type BasketCheckoutRequestDTO struct { BasketID string `json:"basket_id"` }