api-entities/http/catalog.go

22 lines
483 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 16:07:56 +01:00
Quantity int `json:"quantity"`
2022-12-18 20:51:26 +01:00
}
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"`
2022-12-20 16:07:56 +01:00
Quantity int `json:"quantity"`
2022-12-18 20:51:26 +01:00
}
type RemoveProductFromBasketResponse struct {
2022-12-20 16:07:56 +01:00
ProductID int `json:"product_id"`
BasketID string `json:"basket_id"`
2022-12-18 20:51:26 +01:00
}