Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteProductFromCart ¶
func DeleteProductFromCart(w http.ResponseWriter, r *http.Request)
func PutProductQuantity ¶
func PutProductQuantity(w http.ResponseWriter, r *http.Request)
Types ¶
type Cart ¶
type Cart struct { Id string `json:"id"` Items map[string]CartItem `json:"items"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
func (*Cart) RemoveProduct ¶
type Usecases ¶
type Usecases struct{}
func (Usecases) DeleteCart ¶
func (Usecases) DeleteProductFromCart ¶
Click to show internal directories.
Click to hide internal directories.