Documentation
¶
Index ¶
- type CartMock
- func (c *CartMock) CountByUserId(ctx context.Context, userId string) (totalCart int64, err error)
- func (c *CartMock) Create(ctx context.Context, data *dto.CreateCartReq) error
- func (c *CartMock) DeleteItem(ctx context.Context, data *dto.DeleteItemCartReq) error
- func (c *CartMock) FindManyByUserId(ctx context.Context, userId string, limit, offset int) (*dto.CartWithCountRes, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CartMock ¶
func NewCartMock ¶
func NewCartMock() *CartMock
func (*CartMock) CountByUserId ¶
func (*CartMock) DeleteItem ¶
func (*CartMock) FindManyByUserId ¶
Click to show internal directories.
Click to hide internal directories.