Commit 0e6cc327 authored by chenweijian's avatar chenweijian

排行榜

parent 44dbe466
...@@ -63,4 +63,5 @@ const ( ...@@ -63,4 +63,5 @@ const (
RoomVisitCount = "room_visit_count" // 15天内进入房间的人数 RoomVisitCount = "room_visit_count" // 15天内进入房间的人数
GroupCountrySortList = "group:sortCountryList:%s" // 国家群组列表,%s:countryName GroupCountrySortList = "group:sortCountryList:%s" // 国家群组列表,%s:countryName
ActTemplateRanking = "act:ranking:%d:%d" // 排行榜数据 活动id:排行榜类型
) )
...@@ -147,3 +147,7 @@ func GetPrefixRoomVisitCount() string { ...@@ -147,3 +147,7 @@ func GetPrefixRoomVisitCount() string {
func GetGroupCountrySortList(country string) string { func GetGroupCountrySortList(country string) string {
return fmt.Sprintf(GroupCountrySortList, country) return fmt.Sprintf(GroupCountrySortList, country)
} }
func GetActTemplateRanking(actId uint64, rankType int) string {
return fmt.Sprintf(ActTemplateRanking, actId, rankType)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment