repository

package
v0.0.0-...-9bcb3a8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCart

func NewCart(db *gorm.DB) repository.Cart

Types

type CartImpl

type CartImpl struct {
	// contains filtered or unexported fields
}

func (*CartImpl) CountByUserId

func (c *CartImpl) CountByUserId(ctx context.Context, userId string) (totalCart int64, err error)

func (*CartImpl) Create

func (c *CartImpl) Create(ctx context.Context, data *dto.CreateCartReq) error

func (*CartImpl) DeleteItem

func (c *CartImpl) DeleteItem(ctx context.Context, data *dto.DeleteItemCartReq) error

func (*CartImpl) FindManyByUserId

func (c *CartImpl) FindManyByUserId(ctx context.Context, userId string, limit, offset int) (*dto.CartWithCountRes, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL