player.go 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. package forms
  2. import (
  3. "time"
  4. )
  5. type StatisticsExportReq struct {
  6. SearchDay int64 `json:"searchDay"`
  7. }
  8. type PlayerAttr struct {
  9. NickName string `json:"nick_name"`
  10. PlayerId int64 `json:"player_id"`
  11. AccID int64 `json:"acc_id"`
  12. ServerID int64 `json:"server_id"`
  13. Level int `json:"level,omitempty"`
  14. Exp int64 `json:"exp,omitempty"`
  15. Stamina int `json:"stamina,omitempty"`
  16. Lastlogintick int64 `json:"lastlogintick,omitempty"`
  17. Lastlogouttick int64 `json:"lastlogouttick,omitempty"`
  18. CreateTime time.Time `json:"create_time"`
  19. Coin int64 `json:"coin,omitempty"`
  20. Diamond int `json:"diamond,omitempty"`
  21. PayCount int `json:"pay_count,omitempty"`
  22. FastEquips string `json:"fast_equips,omitempty"`
  23. Roles string `json:"roles,omitempty"`
  24. Talents string `json:"talents,omitempty"`
  25. Treasures string `json:"treasures,omitempty"`
  26. Body string `json:"body,omitempty"`
  27. PassRoom string `json:"pass_room,omitempty"`
  28. }
  29. // 玩家账号信息
  30. type PlayerInfo struct {
  31. PlayerId int64 `json:"playerid,omitempty"`
  32. AccID int64 `json:"accID,omitempty"`
  33. NickName string `json:"nickName,omitempty"`
  34. ServerID int `json:"serverID,omitempty"`
  35. Level int `json:"level,omitempty"`
  36. Exp int64 `json:"exp,omitempty"`
  37. Stamina int `json:"stamina,omitempty"`
  38. Coin int64 `json:"coin"`
  39. Diamond int64 `json:"diamond"`
  40. Lastlogintick string `json:"lastlogintick,omitempty"`
  41. Lastlogouttick string `json:"lastlogouttick,omitempty"`
  42. CreateTime string `json:"create_time"`
  43. PlayerRecharge
  44. PlayerWear string `json:"player_wear"` //武器
  45. PlayerRole string `json:"player_role"` //角色
  46. PlayerChapter string `json:"player_chapter"` //通过关卡
  47. PlayerTalent string `json:"player_talent"` //天赋
  48. PlayerTreasure string `json:"player_treasure"` //宝物
  49. PlayerBody string `json:"player_body"` //部位
  50. }
  51. // 玩家角色
  52. type PlayerRole struct {
  53. Id int64 `json:"id"`
  54. Order int `json:"order"`
  55. NoTip int `json:"noTip"`
  56. }
  57. // 关卡
  58. type PlayerChapter struct {
  59. ID int64 `json:"id"`
  60. Count int `json:"count"`
  61. Difficulty int `json:"difficulty"`
  62. Pass bool `json:"pass"`
  63. IsActivity bool `json:"isActivity"`
  64. }
  65. // 部件
  66. type PlayerBody struct {
  67. Part int `json:"part"`
  68. Level int `json:"level"`
  69. Step int `json:"step"`
  70. }
  71. // 宝物
  72. type PlayerTreasure struct {
  73. RoleId int64 `json:"roleId"`
  74. TId int64 `json:"tId"`
  75. LuckyValue int `json:"LuckyValue"`
  76. }
  77. // 玩家充值与消费
  78. type PlayerRecharge struct {
  79. PlayerId int64 `json:"player_id"`
  80. Total int64 `json:"total"` //充值金额
  81. Count int64 `json:"count"` //充值次数
  82. FirstChargeAt string `json:"first_chargeAt,omitempty"` //第一次充值时间
  83. LastChargeAt string `json:"last_chargeAt,omitempty"` //最后一次充值时间
  84. RechargeAmount int64 `json:"recharge_amount,omitempty"` //充值金额
  85. RechargeCount int64 `json:"recharge_count,omitempty"` //充值次数
  86. //RechargeDiamondCount int64
  87. //ConsumptionCoinCount int64
  88. //ConsumptionDiamondCount int64
  89. }
  90. // 充值数据
  91. type PlayerRecharge1 struct {
  92. PlayerId int64 `json:"player_id"`
  93. Total int64 `json:"total"` //充值金额
  94. Count int64 `json:"count"` //充值次数
  95. FirstChargeAt string `json:"first_chargeAt,omitempty"` //第一次充值时间
  96. LastChargeAt string `json:"last_chargeAt,omitempty"` //最后一次充值时间
  97. RechargeAmount int64 `json:"recharge_amount,omitempty"` //充值金额
  98. RechargeCount int64 `json:"recharge_count,omitempty"` //充值次数
  99. }
  100. // 充值数据2
  101. type PlayerRecharge2 struct {
  102. PlayerId int64 `json:"player_id,omitempty"`
  103. FirstId int64 `json:"first_id,omitempty"`
  104. FirstCreatedAt time.Time `json:"first_created_at"`
  105. LastId int64 `json:"last_id,omitempty"`
  106. LastCreatedAt time.Time `json:"last_created_at"`
  107. }
  108. type SearchTime struct {
  109. FirstDayTimestamp int64
  110. FirstDayTimeString string
  111. LastDayTimestamp int64
  112. LastDayTimesString string
  113. }