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 {
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"`
}