Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) CreateCart(_a0 cart.Cart) (*cart.Cart, error)
- func (_m *Repository) CreateCartProduct(_a0 cart.CartProduct) (*cart.CartProduct, error)
- func (_m *Repository) FindCartByUserID(_a0 int) (*cart.Cart, error)
- func (_m *Repository) FindCartProduct(_a0 int, _a1 int) (*cart.CartProduct, error)
- func (_m *Repository) FindCartProductByCart(_a0 int) ([]cart.CartProduct, error)
- func (_m *Repository) SumPrice(_a0 int) int
- func (_m *Repository) UpdateCart(_a0 cart.Cart) (*cart.Cart, error)
- func (_m *Repository) UpdateCartProduct(_a0 cart.CartProduct) (*cart.CartProduct, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func (*Repository) CreateCart ¶
CreateCart provides a mock function with given fields: _a0
func (*Repository) CreateCartProduct ¶
func (_m *Repository) CreateCartProduct(_a0 cart.CartProduct) (*cart.CartProduct, error)
CreateCartProduct provides a mock function with given fields: _a0
func (*Repository) FindCartByUserID ¶
func (_m *Repository) FindCartByUserID(_a0 int) (*cart.Cart, error)
FindCartByUserID provides a mock function with given fields: _a0
func (*Repository) FindCartProduct ¶
func (_m *Repository) FindCartProduct(_a0 int, _a1 int) (*cart.CartProduct, error)
FindCartProduct provides a mock function with given fields: _a0, _a1
func (*Repository) FindCartProductByCart ¶
func (_m *Repository) FindCartProductByCart(_a0 int) ([]cart.CartProduct, error)
FindCartProductByCart provides a mock function with given fields: _a0
func (*Repository) SumPrice ¶
func (_m *Repository) SumPrice(_a0 int) int
SumPrice provides a mock function with given fields: _a0
func (*Repository) UpdateCart ¶
UpdateCart provides a mock function with given fields: _a0
func (*Repository) UpdateCartProduct ¶
func (_m *Repository) UpdateCartProduct(_a0 cart.CartProduct) (*cart.CartProduct, error)
UpdateCartProduct provides a mock function with given fields: _a0
type Service ¶
Service is an autogenerated mock type for the Service type
func (*Service) CreateCart ¶
func (_m *Service) CreateCart(_a0 int, _a1 cart.CreateCartData) error
CreateCart provides a mock function with given fields: _a0, _a1
func (*Service) FindCartByUserID ¶
func (_m *Service) FindCartByUserID(userID int) ([]cart.CartProduct, error)
FindCartByUserID provides a mock function with given fields: userID