From 6a10396f51c11ad0f37486ee8031bb188d29494c Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Wed, 9 Aug 2023 16:04:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B8=E6=88=8F1v1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _const/rediskey/key.go | 1 + _const/rediskey/key_func.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/_const/rediskey/key.go b/_const/rediskey/key.go index 6d4662a..5aecfca 100644 --- a/_const/rediskey/key.go +++ b/_const/rediskey/key.go @@ -53,4 +53,5 @@ const ( Game1V1EnterRoom = "game:oneAndOne:%s" // 1v1游戏,进入某个房间,%s: imGroupId Game1V1GameChannel = "game:gameChannel:%s" // 1v1游戏,发布订阅channel,游戏创建成功后的通知,%s: imGroupId Game1V1ResetGameRoom = "game:resetGameRoom:%s" // 1v1游戏,把某个房间重新放回匹配池,%s: txGroupId + Game1V1RoomRobot = "game:oneAndOneRobot:%s" // 1v1游戏,某个房间匹配到的机器人,%s: txGroupId, val: 机器人uid ) diff --git a/_const/rediskey/key_func.go b/_const/rediskey/key_func.go index ab1d7c3..3955655 100644 --- a/_const/rediskey/key_func.go +++ b/_const/rediskey/key_func.go @@ -119,3 +119,7 @@ func GetGame1V1GameChannel(imGroupId string) string { func GetGame1V1ResetGameRoom(txGroupId string) string { return fmt.Sprintf(Game1V1ResetGameRoom, txGroupId) } + +func GetGame1V1RoomRobot(txGroupId string) string { + return fmt.Sprintf(Game1V1RoomRobot, txGroupId) +} -- 2.22.0