From 0e6cc3274e61411e392c58c53871e42b9102a612 Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Tue, 29 Aug 2023 18:22:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E8=A1=8C=E6=A6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _const/rediskey/key.go | 1 + _const/rediskey/key_func.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/_const/rediskey/key.go b/_const/rediskey/key.go index b4e94e5..6afdab6 100644 --- a/_const/rediskey/key.go +++ b/_const/rediskey/key.go @@ -63,4 +63,5 @@ const ( RoomVisitCount = "room_visit_count" // 15天内进入房间的人数 GroupCountrySortList = "group:sortCountryList:%s" // 国家群组列表,%s:countryName + ActTemplateRanking = "act:ranking:%d:%d" // 排行榜数据 活动id:排行榜类型 ) diff --git a/_const/rediskey/key_func.go b/_const/rediskey/key_func.go index 5fe1a23..ec2b0af 100644 --- a/_const/rediskey/key_func.go +++ b/_const/rediskey/key_func.go @@ -147,3 +147,7 @@ func GetPrefixRoomVisitCount() string { func GetGroupCountrySortList(country string) string { return fmt.Sprintf(GroupCountrySortList, country) } + +func GetActTemplateRanking(actId uint64, rankType int) string { + return fmt.Sprintf(ActTemplateRanking, actId, rankType) +} -- 2.22.0