Documentation ¶
Index ¶
- func NewCart(cr repository.Cart, gc *client.Grpc) service.Cart
- type CartImpl
- 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) GetByCurentUser(ctx context.Context, data *dto.GetCartByCurrentUserReq) (*dto.DataWithPaging[[]*dto.ProductCartRes], 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) DeleteItem ¶
func (*CartImpl) GetByCurentUser ¶
func (c *CartImpl) GetByCurentUser(ctx context.Context, data *dto.GetCartByCurrentUserReq) (*dto.DataWithPaging[[]*dto.ProductCartRes], error)
Click to show internal directories.
Click to hide internal directories.