game.go 621 B

12345678910111213141516171819202122232425
  1. package message
  2. import (
  3. "bet24.com/servers/micros/audioroom/handler/game"
  4. "bet24.com/servers/micros/audioroom/handler/manager"
  5. )
  6. // 开始游戏
  7. func audioRoomStartGame(userId int, data string) string {
  8. return game.StartGame(userId, data)
  9. }
  10. func audioRoomGetGameRoomInfo(userId int, data string) string {
  11. return game.GetGameRoomInfo(userId, data)
  12. }
  13. // 创建游戏房间
  14. func audioRoomCreateGameRoom(userId int, data string) string {
  15. return manager.CreateGameRoom(userId, data)
  16. }
  17. // 关闭游戏房间
  18. func audioRoomCloseGameRoom(userId int, data string) string {
  19. return manager.CloseGameRoom(userId, data)
  20. }