roommgr.go 576 B

12345678910111213
  1. package _interface
  2. import pb "bet24.com/servers/micros/audioroom/proto"
  3. // 房间管理器接口
  4. type RoomMgr interface {
  5. GetRoomInfo(roomId int) *pb.RoomInfo // 房间信息
  6. GetOnlineUsers(roomId int) []pb.UserInfo // 房间在线列表
  7. UpdateMemberLevel(userId, roomId, level, exps int) // 更新会员等级
  8. AddCollect(userId, roomId, point int) // 收集点数
  9. DoRoomTaskAction(userId, roomId, action, num int) // 房间任务
  10. DoUserTaskAction(userId, roomId, action, num, ext int) // 用户房间任务
  11. }