dao

package
v0.0.0-...-e809d31 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cart

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

func NewCart

func NewCart(rdb *redis.Client) *Cart

func (*Cart) AddProductToCart

func (c *Cart) AddProductToCart(ctx context.Context, userId, productId int64, v []byte) error

func (*Cart) DelProduct

func (c *Cart) DelProduct(ctx context.Context, userId, productId int64) error

func (*Cart) GetCart

func (c *Cart) GetCart(ctx context.Context, userId int64) ([]*model.CartProduct, error)

Jump to

Keyboard shortcuts

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