Commit 209ec560 authored by chenweijian's avatar chenweijian

group support

parent b0084cfd
...@@ -56,4 +56,7 @@ const ( ...@@ -56,4 +56,7 @@ const (
Game1V1RoomRobot = "game:oneAndOneRobot:%s" // 1v1游戏,某个房间匹配到的机器人,%s: txGroupId, val: 机器人uid Game1V1RoomRobot = "game:oneAndOneRobot:%s" // 1v1游戏,某个房间匹配到的机器人,%s: txGroupId, val: 机器人uid
Game1V1GameTimesRecord = "game:timesRecord:%s:%d:%d:%d" // 1v1游戏,游戏次数活动记录,天日期:玩家Id:游戏gameId:对方玩家id Game1V1GameTimesRecord = "game:timesRecord:%s:%d:%d:%d" // 1v1游戏,游戏次数活动记录,天日期:玩家Id:游戏gameId:对方玩家id
Game1V1GameWinTimesRecord = "game:winTimesRecord:%s:%d:%d:%d" // 1v1游戏,游戏获胜次数活动记录,天日期:获胜玩家Id:游戏gameId:对方玩家id Game1V1GameWinTimesRecord = "game:winTimesRecord:%s:%d:%d:%d" // 1v1游戏,游戏获胜次数活动记录,天日期:获胜玩家Id:游戏gameId:对方玩家id
GroupSupportConsumeSummary = "group:support:consumeSummary" // 群组扶持,周流水记录,zset数据
GroupSupportCountSupporter = "group:support:supporter:%s" // 群组扶持,%s:imGroupId,SADD新的支持者
) )
...@@ -131,3 +131,11 @@ func GetGame1V1GameTimesRecord(userId1, userId2 uint64, gameId int) string { ...@@ -131,3 +131,11 @@ func GetGame1V1GameTimesRecord(userId1, userId2 uint64, gameId int) string {
func GetGame1V1GameWinTimesRecord(userId1, userId2 uint64, gameId int) string { func GetGame1V1GameWinTimesRecord(userId1, userId2 uint64, gameId int) string {
return fmt.Sprintf(Game1V1GameWinTimesRecord, time.Now().Format(utils.COMPACT_DATE_FORMAT), userId1, gameId, userId2) return fmt.Sprintf(Game1V1GameWinTimesRecord, time.Now().Format(utils.COMPACT_DATE_FORMAT), userId1, gameId, userId2)
} }
func GetGroupSupportConsumeSummary() string {
return GroupSupportConsumeSummary
}
func GetGroupSupportCountSupporter(imGroupId string) string {
return fmt.Sprintf(GroupSupportCountSupporter, imGroupId)
}
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