This commit is contained in:
Piotr Biernat 2022-12-20 16:07:56 +01:00
parent 20fe425aef
commit 14fbd44668

View File

@ -2,6 +2,7 @@ package http
type AddProductToBasketRequest struct { type AddProductToBasketRequest struct {
ProductID int `json:"product_id"` ProductID int `json:"product_id"`
Quantity int `json:"quantity"`
} }
type AddProductToBasketResponse struct { type AddProductToBasketResponse struct {
@ -11,8 +12,10 @@ type AddProductToBasketResponse struct {
type RemoveProductFromBasketRequest struct { type RemoveProductFromBasketRequest struct {
ProductID int `json:"product_id"` ProductID int `json:"product_id"`
Quantity int `json:"quantity"`
} }
type RemoveProductFromBasketResponse struct { type RemoveProductFromBasketResponse struct {
ProductID int `json:"product_id"`
BasketID string `json:"basket_id"` BasketID string `json:"basket_id"`
} }