diff --git a/_const/rediskey/key.go b/_const/rediskey/key.go index 5caffd339fb576c0eb8896509a5d0328abc43c84..b4e94e5419725954e0a939d56c47b1706db2d443 100644 --- a/_const/rediskey/key.go +++ b/_const/rediskey/key.go @@ -61,4 +61,6 @@ const ( GroupSupportCountSupporter = "group:support:supporter:%s:%s" // 群组扶持,日期:imGroupId,SADD新的支持者 RoomVisitCount = "room_visit_count" // 15天内进入房间的人数 + + GroupCountrySortList = "group:sortCountryList:%s" // 国家群组列表,%s:countryName ) diff --git a/_const/rediskey/key_func.go b/_const/rediskey/key_func.go index 2c610cd8999b2d2131e7dd5addbd02047e3c5edf..5fe1a234316adf3cb529fd5dcb0747e3bceff80b 100644 --- a/_const/rediskey/key_func.go +++ b/_const/rediskey/key_func.go @@ -143,3 +143,7 @@ func GetGroupSupportCountSupporter(period, imGroupId string) string { func GetPrefixRoomVisitCount() string { return RoomVisitCount } + +func GetGroupCountrySortList(country string) string { + return fmt.Sprintf(GroupCountrySortList, country) +}