game_task.go 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. package request
  2. import (
  3. "log-server/model/task"
  4. )
  5. type GameTaskRequest struct {
  6. Id uint `json:"id"`
  7. TaskId int `json:"task_id"`
  8. TaskName string `json:"task_name"`
  9. User string `json:"user"`
  10. NewRetained string `json:"new_retained"`
  11. GameName string `json:"game_name"`
  12. GameId int `json:"game_id"`
  13. Date string `json:"date"`
  14. GamePortId int `json:"game_port_id"`
  15. AccountType int `json:"account_type"`
  16. LoginMethod int `json:"login_method"`
  17. TxChannel string `json:"tx_channel"`
  18. TxGameId string `json:"tx_game_id"`
  19. MzChannel string `json:"mz_channel"`
  20. MzGameId string `json:"mz_game_id"`
  21. GameIdXmy string `json:"game_id_xmy"`
  22. NewTarget int `json:"new_target"`
  23. PayTarget int `json:"pay_target"`
  24. RetainedTarget int `json:"retained_target"`
  25. NewTargetH int `json:"new_target_h"`
  26. RetainedTargetH int `json:"retained_target_h"`
  27. PayPrice int `json:"pay_price"`
  28. }
  29. type GetGameTaskListRequest struct {
  30. task.GameTask
  31. PageInfo
  32. OrderKey string `json:"orderKey"` // 排序
  33. Desc bool `json:"desc"` // 排序方式:升序false(默认)|降序true
  34. }
  35. //获取小绵羊游戏数据列表
  36. type GetXmyGameListRequest struct {
  37. Date []string `json:"date"`
  38. }
  39. type UpdateGameTaskStatusRequest struct {
  40. TaskId int `json:"task_id"`
  41. Status int `json:"status"` // 状态-1关闭,1开启
  42. }
  43. type GetGameTaskListTargetRequest struct {
  44. GameTargetCompleteRequest
  45. PageInfo
  46. OrderKey string `json:"orderKey"` // 排序
  47. Desc bool `json:"desc"` // 排序方式:升序false(默认)|降序true
  48. }
  49. type ExcelInfo struct {
  50. FileName string `json:"fileName"` // 文件名
  51. InfoList struct {
  52. GameTargetCompleteRequest
  53. PageInfo
  54. OrderKey string `json:"orderKey"` // 排序
  55. Desc bool `json:"desc"` // 排序方式:升序false(默认)|降序true
  56. } `json:"infoList"`
  57. }
  58. type GameTargetCompleteRequest struct {
  59. Id uint `json:"id"`
  60. TaskId int `json:"task_id"`
  61. TaskName string `json:"task_name"`
  62. User string `json:"user"`
  63. LoginMethod string `json:"login_method"`
  64. NewComplete int `json:"new_complete"`
  65. PayComplete int `json:"pay_complete"`
  66. RetainedComplete int `json:"retained_complete"`
  67. NewTarget int `json:"new_target"`
  68. PayTarget int `json:"pay_target"`
  69. RetainedTarget int `json:"retained_target"`
  70. Amount int `json:"amount"`
  71. CreateDate string `json:"create_date"`
  72. UpdateTime string `json:"update_time"` // 更新时间
  73. GameRate string `json:"game_rate"`
  74. IsComplete int `json:"is_complete"`
  75. Date []string `json:"date"`
  76. GamePortId int `json:"game_port_id"`
  77. Aupr int `json:"aupr"`
  78. TotalAmount float64 `json:"total_amount"`
  79. }
  80. type GetGameTaskRatioListPageRequest struct {
  81. GetGameTaskRatioListRequest
  82. PageInfo
  83. OrderKey string `json:"orderKey"` // 排序
  84. Desc bool `json:"desc"` // 排序方式:升序false(默认)|降序true
  85. }
  86. type GetGameTaskRatioListRequest struct {
  87. TaskId int `json:"task_id"`
  88. Date string `json:"date"`
  89. TaskName string `json:"task_name"`
  90. User string `json:"user"`
  91. }
  92. type GetGameTargetCompleteInfo struct {
  93. GameId int `json:"game_id"`
  94. GameName string `json:"game_name"`
  95. Username string `json:"username"`
  96. NewComplete int `json:"new_complete"`
  97. PayComplete int `json:"pay_complete"`
  98. RetainedComplete int `json:"retain_complete"`
  99. NewTarget int `json:"new_target"`
  100. PayTarget int `json:"pay_target"`
  101. RetainedTarget int `json:"retain_target"`
  102. TheDate string `json:"the_date"`
  103. IsComplete int `json:"is_complete"`
  104. }
  105. type GetGameTaskTargetByIdRequest struct {
  106. ID int `json:"id" form:"id"` // 主键ID
  107. CreateDate string `json:"create_date"`
  108. }
  109. type UpdateGameTaskTargetRequest struct {
  110. TaskId int `json:"task_id"`
  111. NewTarget int `json:"new_target"`
  112. PayTarget int `json:"pay_target"`
  113. RetainedTarget int `json:"retained_target"`
  114. CreateDate string `json:"create_date"`
  115. CardList []CardInfo `json:"card_list"`
  116. HandNewComplete int `json:"hand_new_complete"`
  117. HandRetainedComplete int `json:"hand_retained_complete"`
  118. HandPayComplete int `json:"hand_pay_complete"`
  119. HandAmountTotal int `json:"hand_amount_total"`
  120. IsFree int `json:"is_free"`
  121. FreeMethod int `json:"free_method"`
  122. IsUploadWt int `json:"is_upload_wt"`
  123. IsUploadXjf int `json:"is_upload_xjf"`
  124. //添加字段
  125. Aupr int `json:"aupr"`
  126. TotalAmount float64 `json:"total_amount"`
  127. }
  128. type CardInfo struct {
  129. Card string `json:"card"`
  130. Amount int `json:"amount"`
  131. }
  132. type GameTaskStatisticsRequest struct {
  133. GroupKey string `json:"group_key"`
  134. Date string `json:"date"`
  135. }
  136. type GameListRequest struct {
  137. User string `json:"user"`
  138. Date string `json:"date"`
  139. GamePortId int `json:"game_port_id"`
  140. }
  141. type GetTemporaryTaskRequest struct {
  142. PcCode string `json:"pc_code"`
  143. }
  144. type RetentionRatioRequest struct {
  145. GameId int `json:"game_id"` //游戏Id
  146. Second int `json:"second"` //次日留
  147. Third int `json:"third"` //3日留存
  148. Forth int `json:"forth"` //4日留存
  149. Fifth int `json:"fifth"` //5日留存
  150. Sixth int `json:"sixth"` //6日留存
  151. Seventh int `json:"seventh"` //7日留存
  152. Tenth int `json:"tenth"` //10日留存
  153. Fifteenth int `json:"fifteenth"` //15日留存
  154. Twentieth int `json:"twentieth"` //20日留存
  155. Thirtieth int `json:"thirtieth"` //30日留存
  156. }
  157. type GetRetentionRatioRequest struct {
  158. GameID int `json:"game_id"` //游戏Id
  159. }
  160. type UploadGameCharacterRequest struct {
  161. Character string `json:"character"` //角色
  162. GameId int `json:"game_id"` //游戏id
  163. Account string `json:"account"`
  164. }