synthesis.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. package entity
  2. type OverviewReq struct {
  3. Page int `json:"page"`
  4. Size int `json:"size"`
  5. UserName string `json:"user_name"` // 用户名
  6. OpenId string `json:"openId"` // 对应tgid
  7. }
  8. type OverviewResp struct {
  9. Details []*OverviewDetail `json:"details"`
  10. Total int64 `json:"total"`
  11. }
  12. type OverviewDetail struct {
  13. UserName string `json:"userName" bson:"userName"` // 用户名 用户ID
  14. OpenId string `json:"openId" bson:"openId"` // 对应tgid
  15. FirstLoginDate int64 `json:"firstLoginDate"` // 用户首次登录日期
  16. CreateTime int64 `json:"createTime" bson:"createTime"` // 用户注册时间
  17. LastLoginTime int64 `json:"lastLoginTime" bson:"loginTime"` // 用户最后一次登录日期
  18. MaxSuccessions int `json:"maxSuccessions" bson:"maxSuccessions"` // 用户累计登录天数
  19. DieRoll int64 `json:"dieRoll"` // 用户骰子投掷次数
  20. CurrentIntegral int64 `json:"currentIntegral"` // 用户当前积分
  21. SuccessfulInvitations int64 `json:"successfulInvitations"` // 用户邀请成功人数
  22. Withdrawals int64 `json:"withdrawals"` // 用户提现次数(USDT)
  23. CumulativeWithdrawalAmount int64 `json:"cumulativeWithdrawalAmount"` // 用户累计提现金额(USDT)
  24. TurntableRuns int64 `json:"turntableRuns"` // 用户转盘实际抽奖次数
  25. PointsRanking int64 `json:"pointsRanking"` // 用户积分排名
  26. RankingOfDiceRolls int64 `json:"rankingOfDiceRolls"` // 用户骰子投掷次数排名
  27. InvitesRanking int64 `json:"invitesRanking"` // 用户邀请人数排名
  28. TonValue int64 `json:"tonValue"` // 用户账户Ton值
  29. UsdtValue int64 `json:"usdtValue"` // 用户账户USDT值
  30. }
  31. type UserListReq struct {
  32. Page int `json:"page"`
  33. Size int `json:"size"`
  34. UserName string `json:"user_name"` // 用户名
  35. OpenId string `json:"openId"` // 对应tgid
  36. }
  37. type UserListResp struct {
  38. Details []*UserListDetail `json:"details"`
  39. Total int64 `json:"total"`
  40. }
  41. type UserListDetail struct {
  42. UserName string `json:"userName" bson:"userName"` // 用户名 用户ID
  43. OpenId string `json:"openId" bson:"openId"` // 对应tgid
  44. CreateTime int64 `json:"createTime" bson:"createTime"` // 用户注册时间
  45. FirstLoginDate int64 `json:"firstLoginDate"` // 用户首次登录日期
  46. LoginIP string `json:"loginIP" bson:"loginIP"` // 登录IP
  47. LastLoginTime int64 `json:"lastLoginTime" bson:"loginTime"` // 用户最后一次登录日期
  48. TonWall string `json:"tonWall" bson:"tonWall"` // 绑定钱包地址
  49. Fingerprint string `json:"fingerprint"` // 指纹数据
  50. }
  51. type TurntableReq struct {
  52. Page int `json:"page"`
  53. Size int `json:"size"`
  54. UserName string `json:"user_name"` // 用户名
  55. OpenId string `json:"openId"` // 对应tgid
  56. StartTime int64 `json:"start_time"` // 开始时间
  57. EndTime int64 `json:"end_time"` // 结束时间
  58. }
  59. type TurntableResp struct {
  60. Details []*TurntableDetail `json:"details"`
  61. Total int64 `json:"total"`
  62. }
  63. type TurntableDetail struct {
  64. UserName string `json:"userName" bson:"userName"` // 用户名 用户ID
  65. OpenId string `json:"openId" bson:"openId"` // 对应tgid
  66. TurntableExecutionTime int64 `json:"turntableExecutionTime"` // 转盘执行时间
  67. PrizeName string `json:"prizeName"` // 抽奖奖品名
  68. PrizeNumber int64 `json:"prizeNumber"` // 抽奖奖品数量
  69. }
  70. type AssetsReq struct {
  71. Page int `json:"page"`
  72. Size int `json:"size"`
  73. UserName string `json:"user_name"` // 用户名
  74. OpenId string `json:"openId"` // 对应tgid
  75. }
  76. type AssetsResp struct {
  77. Details []*AssetsDetail `json:"details"`
  78. Total int64 `json:"total"`
  79. }
  80. type AssetsDetail struct {
  81. UserName string `json:"userName" bson:"userName"` // 用户名 用户ID
  82. OpenId string `json:"openId" bson:"openId"` // 对应tgid
  83. TonValue int64 `json:"tonValue"` // 用户账户Ton值
  84. UsdtValue int64 `json:"usdtValue"` // 用户账户USDT值
  85. StatisticalDate int64 `json:"statisticalDate"` // 统计日期
  86. }
  87. type AssetsRecordReq struct {
  88. Page int `json:"page"`
  89. Size int `json:"size"`
  90. UserName string `json:"user_name"` // 用户名
  91. OpenId string `json:"openId"` // 对应tgid
  92. OperationType string `json:"operation_type"` // 操作类型 增加:increase;减少:decrease
  93. Currency string `json:"currency"` // 货币类型
  94. Amount int64 `json:"amount"` // 变动金额
  95. StartTime int64 `json:"start_time"` // 开始时间
  96. EndTime int64 `json:"end_time"` // 结束时间
  97. }
  98. type AssetsRecordResp struct {
  99. Details []*AssetsRecordDetail `json:"details"`
  100. Total int64 `json:"total"`
  101. }
  102. type AssetsRecordDetail struct {
  103. UserName string `json:"userName" bson:"userName"` // 用户名 用户ID
  104. OpenId string `json:"openId" bson:"openId"` // 对应tgid
  105. AssetType string `json:"assetType"` // 资产增长类型
  106. AssetsGrowth int64 `json:"assetsGrowth"` // 资产增长数量
  107. AcquisitionTime int64 `json:"acquisitionTime"` // 获取资产时间
  108. SourceOfAssetAcquisition string `json:"sourceOfAssetAcquisition"` // 资产获取来源
  109. }
  110. type InviteReq struct {
  111. Page int `json:"page"`
  112. Size int `json:"size"`
  113. UserName string `json:"user_name"` // 用户名
  114. OpenId string `json:"openId"` // 对应tgid
  115. }
  116. type InviteResp struct {
  117. Details []*InviteDetail `json:"details"`
  118. Total int64 `json:"total"`
  119. }
  120. type InviteDetail struct {
  121. UserName string `json:"userName" bson:"userName"` // 用户名 用户ID
  122. OpenId string `json:"openId" bson:"openId"` // 对应tgid
  123. InvitationHits int64 `json:"invitationHits"` // 邀请按钮点击次数
  124. InviteID string `json:"inviteID"` // 被邀请成功用户ID
  125. IfInviteVIP bool `json:"ifInviteVIP"` // 被邀请人是否为telegram会员
  126. InviteTime int64 `json:"inviteTime"` // 邀请成功时间
  127. SuccessfulInvitationsLV2 int64 `json:"successfulInvitationsLV2"` // 被邀请成功用户lv>2的人数
  128. CumulativesuccessfulInvitations int64 `json:"cumulativesuccessfulInvitations"` // 累计邀请成功人数
  129. InvitationChannel string `json:"invitationChannel"` // 邀请渠道记录
  130. }
  131. type ActiveReq struct {
  132. Page int `json:"page"`
  133. Size int `json:"size"`
  134. UserName string `json:"user_name"` // 用户名
  135. OpenId string `json:"openId"` // 对应tgid
  136. }
  137. type ActiveResp struct {
  138. Details []*ActiveDetail `json:"details"`
  139. Total int64 `json:"total"`
  140. }
  141. type ActiveDetail struct {
  142. UserName string `json:"userName" bson:"userName"` // 用户名 用户ID
  143. OpenId string `json:"openId" bson:"openId"` // 对应tgid
  144. IfUserVip bool `json:"ifUserVip"` // 用户Telegram会员身份
  145. CreateTime int64 `json:"createTime" bson:"createTime"` // 用户注册时间
  146. LastLoginTime int64 `json:"lastLoginTime" bson:"loginTime"` // 用户最后一次登录日期
  147. MaxSuccessions int `json:"maxSuccessions" bson:"maxSuccessions"` // 用户累计登录天数
  148. DiceHits int64 `json:"diceHits"` // 用户骰子点击次数
  149. InvitationHits int64 `json:"invitationHits"` // 邀请按钮点击次数
  150. SuccessfulInvitations int64 `json:"successfulInvitations"` // 用户邀请成功人数
  151. Withdrawals int64 `json:"withdrawals"` // 用户提现次数
  152. CumulativeWithdrawalAmount int64 `json:"cumulativeWithdrawalAmount"` // 用户累计提现金额
  153. TurntableClicks int64 `json:"turntableClicks"` // 用户转盘点击次数
  154. TurntableRuns int64 `json:"turntableRuns"` // 用户转盘实际抽奖次数
  155. }
  156. type TaskCompletionReq struct {
  157. Page int `json:"page"`
  158. Size int `json:"size"`
  159. UserName string `json:"user_name"` // 用户名
  160. OpenId string `json:"openId"` // 对应tgid
  161. }
  162. type TaskCompletionResp struct {
  163. Details []*TaskCompletionDetail `json:"details"`
  164. Total int64 `json:"total"`
  165. }
  166. type TaskCompletionDetail struct {
  167. UserName string `json:"userName" bson:"userName"` // 用户名 用户ID
  168. OpenId string `json:"openId" bson:"openId"` // 对应tgid
  169. DicePerDay int64 `json:"dicePerDay"` // 每日骰子数量
  170. IsJoinTgChannel bool `json:"isJoinTgChannel"` // 是否加入TG频道
  171. IsFollowTwitter bool `json:"isFollowTwitter"` // 是否关注推特
  172. IsJoinDcChannel bool `json:"isJoinDcChannel"` // 是否加入DC频道
  173. IsBindTwitter bool `json:"isBindTwitter"` // 是否绑定推特
  174. IsFollowYoutube bool `json:"isFollowYoutube"` // 是否关注Youtube账号
  175. InviteNumber int64 `json:"inviteNumber"` // 邀请好友数量
  176. }
  177. type BehaviorMonitoringReq struct {
  178. Page int `json:"page"`
  179. Size int `json:"size"`
  180. UserName string `json:"user_name"` // 用户名
  181. OpenId string `json:"openId"` // 对应tgid
  182. }
  183. type BehaviorMonitoringResp struct {
  184. Details []*BehaviorMonitoringDetail `json:"details"`
  185. Total int64 `json:"total"`
  186. }
  187. type BehaviorMonitoringDetail struct {
  188. UserName string `json:"userName" bson:"userName"` // 用户名 用户ID
  189. OpenId string `json:"openId" bson:"openId"` // 对应tgid
  190. DieExecutionTime int64 `json:"dieExecutionTime"` // 骰子游戏执行时间
  191. }