cart

package
v0.0.0-...-90e0d95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	AddProductInCart(w http.ResponseWriter, r *http.Request)
	DeleteProductInCart(w http.ResponseWriter, r *http.Request)
	ChangeProductInCart(w http.ResponseWriter, r *http.Request)
	GetProductsFromCart(w http.ResponseWriter, r *http.Request)
	DeleteProductsFromCart(w http.ResponseWriter, r *http.Request)
}

type UseCase

type UseCase interface {
	AddProduct(userId uint64, cartArticle *models.CartArticle) error
	DeleteProduct(userId uint64, identifier *models.ProductIdentifier) error
	ChangeProduct(userId uint64, cartArticle *models.CartArticle) error
	GetPreviewCart(userId uint64) (*models.PreviewCart, error)
	DeleteCart(userId uint64) error
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL