data.go 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. package matchdata
  2. import (
  3. "bet24.com/database"
  4. )
  5. // 获取赛事列表
  6. type (
  7. getMatchList_in struct {
  8. SerialNumber string // 赛事场次
  9. BeginTime string // 开始时间
  10. EndTime string // 结束时间
  11. PageIndex int // 请求的页数
  12. PageSize int // 请求的个数
  13. }
  14. matchStatistics struct {
  15. SerialNumber string // 比赛场次
  16. MatchName string // 比赛名称
  17. EnrollFee string // 报名费(存在多种报名方式)[ItemId, Count]
  18. MaxUserCount int // 最多报名人数
  19. TableUserCount int // 每张桌子人数
  20. JoinUserCount int // 加入的用户数
  21. StartTime string // 开始时间
  22. EndTime string // 结束时间
  23. }
  24. getMatchList_out struct {
  25. RecordCount int // 总记录数
  26. List []matchStatistics
  27. }
  28. getMatchList struct {
  29. database.Trans_base
  30. In getMatchList_in
  31. Out getMatchList_out
  32. }
  33. )
  34. func NewGetMatchList() *getMatchList {
  35. return &getMatchList{}
  36. }
  37. // 获取加入的名单
  38. type (
  39. getJoinList_in struct {
  40. SerialNumber string // 赛事场次
  41. UserID int // 用户ID
  42. IsAward int // 是否获奖(-1=全部,0=否,1=是)
  43. BeginTime string // 开始时间
  44. EndTime string // 结束时间
  45. PageIndex int // 请求的页数
  46. PageSize int // 请求的个数
  47. }
  48. joinList struct {
  49. SerialNumber string // 赛事场次
  50. Rank int // 排名
  51. UserID int // 用户ID
  52. Nickname string // 用户昵称
  53. ItemID int // 道具ID(报名道具)
  54. ItemCount int // 报名道具的数量
  55. MatchName string // 赛事名称
  56. EnrollTime string // 报名时间
  57. Score int // 分数
  58. Prize string // 奖品
  59. RobotID int // 机器人ID
  60. }
  61. getJoinList_out struct {
  62. RecordCount int // 总记录数
  63. List []joinList
  64. }
  65. getJoinList struct {
  66. database.Trans_base
  67. In getJoinList_in
  68. Out getJoinList_out
  69. }
  70. )
  71. func NewGetJoinList() *getJoinList {
  72. return &getJoinList{}
  73. }
  74. // 获取加入的名单
  75. type (
  76. getTypeList_in struct {
  77. SerialNumber string // 赛事场次
  78. }
  79. typeList struct {
  80. SerialNumber string // 赛事场次
  81. Rank int // 排名
  82. UserID int // 用户ID
  83. NickName string // 用户昵称
  84. ItemID int // 道具ID(报名道具)
  85. ItemCount int // 报名道具的数量
  86. EnrollTime string // 报名时间
  87. Score int // 分数
  88. Prize string // 奖品
  89. RobotID int // 机器人ID
  90. }
  91. getTypeList_out struct {
  92. RecordCount int // 总记录数
  93. List []typeList
  94. }
  95. getTypeList struct {
  96. database.Trans_base
  97. In getTypeList_in
  98. Out getTypeList_out
  99. }
  100. )
  101. func NewGetTypeList() *getTypeList {
  102. return &getTypeList{}
  103. }
  104. // 获取加入的总费用
  105. type (
  106. getJoinTotalFee_in struct {
  107. SerialNumber string // 赛事场次
  108. }
  109. joinTotalFee struct {
  110. ItemID int
  111. ItemCount int
  112. }
  113. getJoinTotalFee_out struct {
  114. List []joinTotalFee
  115. }
  116. getJoinTotalFee struct {
  117. database.Trans_base
  118. In getJoinTotalFee_in
  119. Out getJoinTotalFee_out
  120. }
  121. )
  122. func NewGetJoinTotalFee() *getJoinTotalFee {
  123. return &getJoinTotalFee{}
  124. }