room.pb.go 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. package proto
  2. import (
  3. badge "bet24.com/servers/micros/badge/proto"
  4. item "bet24.com/servers/micros/item_inventory/proto"
  5. user "bet24.com/servers/micros/userservices/proto"
  6. )
  7. type Request_IsEnterRoom struct {
  8. RoomId int
  9. Password string
  10. }
  11. type Response_RoomInfo struct {
  12. *RoomInfo
  13. Badges []badge.BadgePosition `json:",omitempty"` // 佩戴与展示的徽章列表
  14. Decorations []user.UserDecoration `json:",omitempty"` // 房主装扮
  15. }
  16. type Response_RoomExtInfo struct {
  17. *RoomExtInfo
  18. }
  19. type Response_RoomHotInfo struct {
  20. OnlineCount int // 在线人数
  21. }
  22. type Request_GetPageList struct {
  23. RoomId int
  24. RoomName string
  25. Tag string
  26. PageIndex int
  27. PageSize int
  28. }
  29. type Response_GetPageList struct {
  30. RecordCount int `json:",omitempty"`
  31. List interface{}
  32. }
  33. type Request_InviteJoin struct {
  34. RoomId int
  35. ToUserId int
  36. }
  37. type Request_AcceptJoin struct {
  38. Code string
  39. IpAddress string
  40. }
  41. type Request_AddJoin struct {
  42. RoomId int
  43. RoleId int
  44. IpAddress string
  45. }
  46. type Response_List struct {
  47. List interface{}
  48. }
  49. type Request_Mic struct {
  50. RoomId int
  51. ToUserId int
  52. SN int
  53. Status int
  54. StreamId string
  55. }
  56. type Request_SetPermission struct {
  57. RoomId int
  58. PermissionType int
  59. Enabled int
  60. }
  61. type Response_GetEnterCondition struct {
  62. EnterCondition
  63. }
  64. type Request_SetEnterCondition struct {
  65. RoomId int
  66. InviteOnly bool
  67. Password string
  68. IsHide bool
  69. }
  70. type Request_GetBlackList struct {
  71. RoomId int
  72. BlackType int
  73. PageIndex int
  74. PageSize int
  75. }
  76. type Request_Black struct {
  77. RoomId int
  78. ToUserId int
  79. BlackType int
  80. Seconds int
  81. }
  82. type Request_GetOperateLog struct {
  83. RoomId int
  84. ToUserId int
  85. OperateType int
  86. PageIndex int
  87. PageSize int
  88. }
  89. type Request_ToUser struct {
  90. RoomId int
  91. ToUserId int
  92. }
  93. type Request_SendGiving struct {
  94. RoomId int
  95. ToUserId int
  96. ToNickName string
  97. GiftId int
  98. Num int
  99. }
  100. type Response_SendGiving struct {
  101. RetCode int
  102. Message string
  103. Request_SendGiving
  104. }
  105. type Response_GiftCollect struct {
  106. RetCode int // 操作结果
  107. Message string // 消息
  108. Items []item.ItemPack // 奖励
  109. }
  110. type Request_SysFlag struct {
  111. SysFlag bool
  112. }
  113. type Response_GetUserRoomInfo struct {
  114. Level int // 等级
  115. Exps int // 经验
  116. }
  117. type Request_StartGame struct {
  118. RoomId int // 房间id
  119. GameId int // 游戏id
  120. PlayType int // 玩法类型
  121. Scene int // 场景
  122. MessageContent string // 消息内容
  123. }
  124. type Response_StartGame struct {
  125. RetCode int // 操作结果
  126. Message string // 消息
  127. Result int // 结果
  128. PlayType int // 玩法
  129. }
  130. // 请求:屏幕锁
  131. type Request_ScreenLock struct {
  132. RoomId int // 房间id
  133. ScreenLock int // 状态(1:锁定,0:解锁)
  134. }
  135. type Request_CreateRoom struct {
  136. RoomName string
  137. Country string
  138. IpAddress string
  139. RoomImg string
  140. Announce string
  141. Tag string
  142. }
  143. type Request_IncomeList struct {
  144. RoomId int
  145. FromUserId int
  146. ItemType int
  147. BeginTime string
  148. EndTime string
  149. PageIndex int
  150. PageSize int
  151. SortType int // 排序类型 (11=收益降序 12=收益升序 21=礼物收益降序 22=礼物收益升序 31=游戏收益降序 32=游戏收益升序 41=下注降序 42=下注升序)
  152. }
  153. type Response_IncomeList struct {
  154. RecordCount int
  155. List interface{}
  156. TotalGameProfit float64 `json:",omitempty"`
  157. TotalGiftProfit float64 `json:",omitempty"`
  158. }
  159. type Response_GetIncomeInfo struct {
  160. IncomeLevel int // 收益等级
  161. GoldIncomeRatio float64 // 金币流水收益比率
  162. ChipIncomeRatio float64 // 钻石流水收益比率
  163. }
  164. type Response_LoginServer struct {
  165. Success bool
  166. *RoomInfo
  167. }