tables.go 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. package models
  2. import (
  3. "math/big"
  4. "github.com/ethereum/go-ethereum/common"
  5. )
  6. type UserInfo struct {
  7. Id int64
  8. Addr string
  9. Direct string //我的上级
  10. DirectNumber int //直推总人数
  11. IndirectRewards float64 `xorm:"Decimal"`
  12. Indirect string //上上级
  13. IndirectNumber int //间推总人数
  14. DirectRewards float64 `xorm:"Decimal"`
  15. Superiors string //所有上级
  16. AvailableClaim float64 `xorm:"Decimal"` //可领取收益
  17. TotalClaimed float64 `xorm:"Decimal"` //总共已领取的收益
  18. AvailableReinput float64 `xorm:"Decimal"` //可用复投
  19. TotalReinputed float64 `xorm:"Decimal"` //总复投
  20. ParticipateAmount float64 `xorm:"Decimal"` //总参与
  21. State int //身份 0 1正式 2 社区
  22. CreateTime string
  23. Hash string
  24. }
  25. // TeamCultivate float64 `xorm:"Decimal"`
  26. // CommunityGift float64 `xorm:"Decimal"`
  27. // CommunityNode float64 `xorm:"Decimal"`
  28. type Performance struct {
  29. Addr string
  30. TotalPerformance float64 `xorm:"Decimal"`
  31. PerformanceLevel int
  32. PerformanceRewards float64 `xorm:"Decimal"`
  33. TotalTeamCultivate float64 `xorm:"Decimal"`
  34. CultivateLevel int
  35. TeamCultivateRewards float64 `xorm:"Decimal"`
  36. CommunityGift float64 `xorm:"Decimal"`
  37. CommunityNode float64 `xorm:"Decimal"`
  38. }
  39. type BlockInfo struct {
  40. Id int64
  41. BlockNumber int64
  42. }
  43. type RewardsPool struct {
  44. Id int64
  45. TeamPerformance float64 `xorm:"Decimal"`
  46. TeamCultivate float64 `xorm:"Decimal"`
  47. TotalPool float64 `xorm:"Decimal"`
  48. }
  49. type UserTxs struct {
  50. Id int64
  51. Addr string
  52. Hash string
  53. OpTime string
  54. }
  55. type AddrBill struct {
  56. Id int64
  57. Addr string
  58. Amount float64 `xorm:"Decimal"`
  59. BillType int
  60. CreateTime string
  61. }
  62. type UserAddr struct {
  63. Addr string `xorm:"pk"`
  64. IdFlag int
  65. Pid int
  66. RealPid int
  67. PidFlag string
  68. People int
  69. Level int
  70. RemovePeople int
  71. TeamBoss int
  72. BadTime string
  73. Msg string
  74. LockAmount1 float64 `xorm:"Decimal"`
  75. LockAmount2 float64 `xorm:"Decimal"`
  76. Profit1 float64 `xorm:"Decimal"`
  77. Profit2 float64 `xorm:"Decimal"`
  78. Profit3 float64 `xorm:"Decimal"`
  79. Profit4 float64 `xorm:"Decimal"`
  80. Amount float64 `xorm:"Decimal"`
  81. Price float64 `xorm:"Decimal"`
  82. UseAmount float64 `xorm:"Decimal"`
  83. AmountLv float64 `xorm:"Decimal"`
  84. Hash string
  85. Block int64
  86. CreateTime string
  87. }
  88. type CommonInfo struct {
  89. Id int64
  90. Amount float64 `xorm:"Decimal"`
  91. SupplyAmount float64 `xorm:"Decimal"`
  92. SupplyTime string
  93. }
  94. type SuccessBill struct {
  95. Id int64
  96. Addr string
  97. Amount float64 `xorm:"Decimal"`
  98. Status int
  99. Block int64
  100. Hash string
  101. FromAddr string
  102. Ty int
  103. CreateTime string
  104. }
  105. type WithdrawalBill struct {
  106. Id int64
  107. Addr string
  108. Amount float64 `xorm:"Decimal"`
  109. Status int
  110. CreateBlock int64
  111. SucBlock int64
  112. Hash string
  113. CreateTime string
  114. }
  115. type TeamUserInfo struct {
  116. Addr string
  117. People int
  118. NftNum int
  119. CreateTime string
  120. }
  121. type Ihot struct {
  122. User common.Address
  123. Referrer common.Address
  124. Amount *big.Int
  125. Price *big.Int
  126. }
  127. type Withdraw struct {
  128. User common.Address
  129. Amount *big.Int
  130. }