Commit bb7f7b99 authored by chenweijian's avatar chenweijian

游戏

parent 4d9ae07e
......@@ -51,4 +51,5 @@ const (
ExchangePinkCostDiamond = "finance:exPinkDiamond:%s:%d" // 某天兑换粉钻所花费的黄钻 日期:用户id
GameAutoMathEnterRoom = "game:autoEnter:%d:%s" // 快速游戏,进入某个房间
Game1V1EnterRoom = "game:oneAndOne:%s" // 1v1游戏,进入某个房间,%s: imGroupId
Game1V1GameChannel = "game:gameChannel:%s" // 1v1游戏,发布订阅channel,游戏创建成功后的通知,%s: imGroupId
)
......@@ -111,3 +111,7 @@ func GetAutoMathEnterRoom(userId uint64, imGroupId string) string {
func GetGame1V1EnterRoom(imGroupId string) string {
return fmt.Sprintf(Game1V1EnterRoom, imGroupId)
}
func GetGame1V1GameChannel(imGroupId string) string {
return fmt.Sprintf(Game1V1GameChannel, 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