diff --git a/http/catalog.go b/http/catalog.go index 67b6d74..6c60d92 100644 --- a/http/catalog.go +++ b/http/catalog.go @@ -2,6 +2,7 @@ package http type AddProductToBasketRequest struct { ProductID int `json:"product_id"` + Quantity int `json:"quantity"` } type AddProductToBasketResponse struct { @@ -11,8 +12,10 @@ type AddProductToBasketResponse struct { type RemoveProductFromBasketRequest struct { ProductID int `json:"product_id"` + Quantity int `json:"quantity"` } type RemoveProductFromBasketResponse struct { - BasketID string `json:"basket_id"` + ProductID int `json:"product_id"` + BasketID string `json:"basket_id"` }