synthesis.go 9.4 KB

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