cart_service

package
v0.0.0-...-8170b65 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckStock

func CheckStock(productId int64, cartNum int, unique string) error

Types

type Cart

type Cart struct {
	Id   int64
	Name string

	Enabled int

	PageNum  int
	PageSize int

	M *models.YshopStoreCart

	Ids []int64

	Uid     int64
	Param   *params.CartParam
	CartIds string
	Status  int

	NumParam *params.CartNumParam
	IdsParam *params.CartIdsParam
}

func (*Cart) AddCart

func (d *Cart) AddCart() (int64, error)

add collect

func (*Cart) ChangeCartNum

func (d *Cart) ChangeCartNum() error

update cart num

func (*Cart) Del

func (d *Cart) Del() error

func (*Cart) GetAll

func (d *Cart) GetAll() vo.ResultList

func (*Cart) GetCartList

func (d *Cart) GetCartList() map[string]interface{}

get cart list

func (*Cart) GetUserCartNum

func (d *Cart) GetUserCartNum() int

get num

func (*Cart) Insert

func (d *Cart) Insert() error

func (*Cart) Save

func (d *Cart) Save() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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