stock

package
v0.0.0-...-1369677 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stock

type Stock interface {
	// Set 设置库存值
	Set(val int64, expire int64) error
	// Get 返回剩余库存
	Get() (int64, error)
	// Sub 减少库存
	Sub(uid string) (int64, error)
	// Del 删除库存
	Del() error
	// GetActivityID 返回活动ID
	GetActivityID() string
	// GetGoodsID 返回商品ID
	GetGoodsID() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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