act

package
v1.2.21 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cache           = pgk.Cache("redis")
	ActIdListIsShow map[int]func(uid int64) bool
	RedDotList      map[string]func(uid int64) int32
)

Functions

func AddIsShowRegistrar

func AddIsShowRegistrar(actId int, isShow func(uid int64) bool)

注册隐藏活动接口

func AddRedDotRegistrar

func AddRedDotRegistrar(key string, redDot func(uid int64) int32)

注册红点接口

func GetCacheKey

func GetCacheKey(uid int64, actId int) string

func GetRedDot

func GetRedDot(uid int64, actId int) *gvar.Var

func RefreshCache

func RefreshCache(uid int64, actId int)

刷新缓存

func SetRedDot

func SetRedDot(uid int64, actId int, redDot int32)

Types

This section is empty.

Jump to

Keyboard shortcuts

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