srv_user

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: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserBuyHistory

type UserBuyHistory struct {
	History map[int]int
	Lock    sync.RWMutex
}

用户购买历史记录

func (*UserBuyHistory) Add

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

func (*UserBuyHistory) GetProductBuyCount

func (p *UserBuyHistory) GetProductBuyCount(productId int) int

Jump to

Keyboard shortcuts

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