Documentation ¶
Index ¶
- Variables
- type Cart
- type CartRepo
- type CartUseCase
- func (uc *CartUseCase) AddItem(ctx context.Context, uid int64, in Item) (c *Cart, err error)
- func (uc *CartUseCase) DeleteCart(ctx context.Context, uid int64) error
- func (uc *CartUseCase) DeleteItem(ctx context.Context, uid int64, itemId int64) (c *Cart, err error)
- func (uc *CartUseCase) GetCart(ctx context.Context, uid int64) (*Cart, error)
- func (uc *CartUseCase) UpdateItem(ctx context.Context, uid, itemId, quantity int64) (c *Cart, err error)
- type Item
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewCartUseCase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type CartUseCase ¶
type CartUseCase struct {
// contains filtered or unexported fields
}
func NewCartUseCase ¶
func NewCartUseCase(repo CartRepo, logger log.Logger) *CartUseCase
func (*CartUseCase) DeleteCart ¶
func (uc *CartUseCase) DeleteCart(ctx context.Context, uid int64) error
func (*CartUseCase) DeleteItem ¶
func (*CartUseCase) UpdateItem ¶
Click to show internal directories.
Click to hide internal directories.