From dda31abbb9e2751f8ea8195bf1918c190817b6a2 Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Mon, 28 Aug 2023 14:56:25 +0800 Subject: [PATCH] sort country grou --- _const/rediskey/key.go | 2 ++ _const/rediskey/key_func.go | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/_const/rediskey/key.go b/_const/rediskey/key.go index 5caffd3..b4e94e5 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 2c610cd..5fe1a23 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) +} -- 2.22.0