diff --git a/_const/rediskey/key.go b/_const/rediskey/key.go index cb79f0601eb46fa850923b35197ad75d40a6d7fd..8b99185b7454fecadd7f8a7a6269b0d7f5babd91 100644 --- a/_const/rediskey/key.go +++ b/_const/rediskey/key.go @@ -15,4 +15,7 @@ const ( OpenRamadanFruitBet = "act:openRamadan:fruitBet:%d:%s:%d:%d" // 开斋节活动,水果机某个轮次下注次数记录,活动id:日期:用户id:轮次 ConvertToTRTCNum = "group:covertTrtc:%s" // 某天声网房间转换成trtc的数量 + + // 活动相关 + TmpActUserActId = "act:tmp:%d:%d" // 模板关联活动对应的用户参与的活动id ) diff --git a/_const/rediskey/key_func.go b/_const/rediskey/key_func.go index 8441fb5cb045b728cb9c419a308ae7b8da021990..0334657c5a0233b48e68f039c1bca46ac11bf16e 100644 --- a/_const/rediskey/key_func.go +++ b/_const/rediskey/key_func.go @@ -46,3 +46,7 @@ func GetOpenRamadanFruitBet(actId, userId uint64, round uint, date string) strin func GetConvertToTRTCNum() string { return fmt.Sprintf(ConvertToTRTCNum, time.Now().Format(utils.DATE_FORMAT)) } + +func GetUserTmpActId(relateId, userId uint64) string { + return fmt.Sprintf(TmpActUserActId, relateId, userId) +}