Compare commits

...

1 Commits

Author SHA1 Message Date
14fbd44668 update 2022-12-20 16:07:56 +01:00

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 {
BasketID string `json:"basket_id"` ProductID int `json:"product_id"`
BasketID string `json:"basket_id"`
} }