You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
322 B
Go

package ckey
import "fmt"
func mallKey(format string, a ...any) string {
return Mall + fmt.Sprintf(format, a...)
}
func MallItemStock(mallItemId int64) string {
return mallKey("item_stock:%d", mallItemId)
}
func MallItemExchanging(projectUserId int64) string {
return mallKey("item_exchanging:%d", projectUserId)
}