srv_product

package
v0.0.0-...-2816995 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductCountMgr

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

商品数量管理

func NewProductCountMgr

func NewProductCountMgr() *ProductCountMgr

func (*ProductCountMgr) Add

func (p *ProductCountMgr) Add(productId, count int)

添加商品

func (*ProductCountMgr) Count

func (p *ProductCountMgr) Count(productId int) (count int)

商品数量

Jump to

Keyboard shortcuts

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