api-entities/http/catalog.go

19 lines
378 B
Go
Raw Normal View History

2022-12-18 20:51:26 +01:00
package http
type AddProductToBasketRequest struct {
ProductID int `json:"product_id"`
}
2022-12-20 11:14:52 +01:00
type AddProductToBasketResponse struct {
2022-12-20 11:22:24 +01:00
ProductID int `json:"product_id"`
BasketID string `json:"basket_id"`
2022-12-18 20:51:26 +01:00
}
type RemoveProductFromBasketRequest struct {
ProductID int `json:"product_id"`
}
type RemoveProductFromBasketResponse struct {
BasketID string `json:"basket_id"`
}