diff --git a/_const/rediskey/key.go b/_const/rediskey/key.go index b4e94e5419725954e0a939d56c47b1706db2d443..6afdab646d54bd0d5c835cce419edff7f0e5a32d 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 5fe1a234316adf3cb529fd5dcb0747e3bceff80b..ec2b0afe1f7f3bd136023c9e0569119420a5a0d1 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) +}