From 8322edd21a4a838314e91f534b370f17666eb39b Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Fri, 28 Apr 2023 16:09:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _const/rediskey/key.go | 3 +++ _const/rediskey/key_func.go | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/_const/rediskey/key.go b/_const/rediskey/key.go index cb79f06..8b99185 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 8441fb5..0334657 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) +} -- 2.22.0