Documentation
¶
Index ¶
- func NewCart(db *gorm.DB) repository.Cart
- type CartImpl
- func (c *CartImpl) CountByUserId(ctx context.Context, userId string) (totalCart int64, err error)
- func (c *CartImpl) Create(ctx context.Context, data *dto.CreateCartReq) error
- func (c *CartImpl) DeleteItem(ctx context.Context, data *dto.DeleteItemCartReq) error
- func (c *CartImpl) FindManyByUserId(ctx context.Context, userId string, limit, offset int) (*dto.CartWithCountRes, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CartImpl ¶
type CartImpl struct {
// contains filtered or unexported fields
}
func (*CartImpl) CountByUserId ¶
func (*CartImpl) DeleteItem ¶
func (*CartImpl) FindManyByUserId ¶
Click to show internal directories.
Click to hide internal directories.