game_task.go 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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 GetGameTargetCompleteInfo struct {
  81. GameId int `json:"game_id"`
  82. GameName string `json:"game_name"`
  83. Username string `json:"username"`
  84. NewComplete int `json:"new_complete"`
  85. PayComplete int `json:"pay_complete"`
  86. RetainedComplete int `json:"retain_complete"`
  87. NewTarget int `json:"new_target"`
  88. PayTarget int `json:"pay_target"`
  89. RetainedTarget int `json:"retain_target"`
  90. TheDate string `json:"the_date"`
  91. IsComplete int `json:"is_complete"`
  92. }
  93. type GetGameTaskTargetByIdRequest struct {
  94. ID int `json:"id" form:"id"` // 主键ID
  95. CreateDate string `json:"create_date"`
  96. }
  97. type UpdateGameTaskTargetRequest struct {
  98. TaskId int `json:"task_id"`
  99. NewTarget int `json:"new_target"`
  100. PayTarget int `json:"pay_target"`
  101. RetainedTarget int `json:"retained_target"`
  102. CreateDate string `json:"create_date"`
  103. CardList []CardInfo `json:"card_list"`
  104. HandNewComplete int `json:"hand_new_complete"`
  105. HandRetainedComplete int `json:"hand_retained_complete"`
  106. HandPayComplete int `json:"hand_pay_complete"`
  107. HandAmountTotal int `json:"hand_amount_total"`
  108. IsFree int `json:"is_free"`
  109. FreeMethod int `json:"free_method"`
  110. IsUploadWt int `json:"is_upload_wt"`
  111. IsUploadXjf int `json:"is_upload_xjf"`
  112. //添加字段
  113. Aupr int `json:"aupr"`
  114. TotalAmount float64 `json:"total_amount"`
  115. }
  116. type CardInfo struct {
  117. Card string `json:"card"`
  118. Amount int `json:"amount"`
  119. }
  120. type GameTaskStatisticsRequest struct {
  121. GroupKey string `json:"group_key"`
  122. Date string `json:"date"`
  123. }
  124. type GameListRequest struct {
  125. User string `json:"user"`
  126. Date string `json:"date"`
  127. GamePortId int `json:"game_port_id"`
  128. }
  129. type GetTemporaryTaskRequest struct {
  130. PcCode string `json:"pc_code"`
  131. }
  132. type RetentionRatioRequest struct {
  133. GameId int `json:"game_id"` //游戏Id
  134. Second int `json:"second"` //次日留
  135. Third int `json:"third"` //3日留存
  136. Forth int `json:"forth"` //4日留存
  137. Fifth int `json:"fifth"` //5日留存
  138. Sixth int `json:"sixth"` //6日留存
  139. Seventh int `json:"seventh"` //7日留存
  140. Tenth int `json:"tenth"` //10日留存
  141. Fifteenth int `json:"fifteenth"` //15日留存
  142. Twentieth int `json:"twentieth"` //20日留存
  143. Thirtieth int `json:"thirtieth"` //30日留存
  144. }
  145. type GetRetentionRatioRequest struct {
  146. GameID int `json:"game_id"` //游戏Id
  147. }
  148. type UploadGameCharacterRequest struct {
  149. Character string `json:"character"` //角色
  150. GameId int `json:"game_id"` //游戏id
  151. Account string `json:"account"`
  152. }