consts

package
v0.0.0-...-b6fae9c Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MulanPSL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SecKillActionNotStarted uint8 = iota
	SecKillActionStarting
	SecKillActionEnded
	SecKillActionCanceled
	SecKillActionError
)

秒杀活动状态

View Source
const (
	REDIS_SEC_KILL_ACTION = "sec_kill:action:"
	REDIS_SEC_KILL_GOOD   = "sec_kill:sec_kill_goods:good_id_"
)

Variables

This section is empty.

Functions

func GetSecKillActionsKey

func GetSecKillActionsKey(actionID uint) string

func GetSecKillGoodKey

func GetSecKillGoodKey(goodID uint64) string

用于构建具体商品的 Redis 键

Types

type OrderReq

type OrderReq struct {
	Sn     string `json:"sn"`
	GoodID uint64 `json:"good_id"`
}

Jump to

Keyboard shortcuts

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