diff --git a/_const/rediskey/key.go b/_const/rediskey/key.go index 1cc86091edf83eb3f57128f972e0e9faf9ab61e7..eda2bfbca13a744f43eb85cab6722f1193f81e85 100644 --- a/_const/rediskey/key.go +++ b/_const/rediskey/key.go @@ -52,4 +52,5 @@ const ( GameAutoMathEnterRoom = "game:autoEnter:%d:%s" // 快速游戏,进入某个房间 Game1V1EnterRoom = "game:oneAndOne:%s" // 1v1游戏,进入某个房间,%s: imGroupId Game1V1GameChannel = "game:gameChannel:%s" // 1v1游戏,发布订阅channel,游戏创建成功后的通知,%s: imGroupId + Game1V1ResetGameRoom = "game:resetGameRoom:%s" // 1v1游戏,把某个房间重新放回匹配池,%s: imGroupId ) diff --git a/_const/rediskey/key_func.go b/_const/rediskey/key_func.go index a0de79d63c9740db59c49136d2a6f7592d0f9274..3701b62fc0225f0a12c0141885882cc24343ae7d 100644 --- a/_const/rediskey/key_func.go +++ b/_const/rediskey/key_func.go @@ -115,3 +115,7 @@ func GetGame1V1EnterRoom(imGroupId string) string { func GetGame1V1GameChannel(imGroupId string) string { return fmt.Sprintf(Game1V1GameChannel, imGroupId) } + +func GetGame1V1ResetGameRoom(imGroupId string) string { + return fmt.Sprintf(Game1V1ResetGameRoom, imGroupId) +}