tables.go 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. Id int64
  30. Addr string
  31. TotalPerformance float64 `xorm:"Decimal"`
  32. PerformanceLevel int
  33. PerformanceRewards float64 `xorm:"Decimal"`
  34. TotalTeamCultivate float64 `xorm:"Decimal"`
  35. CultivateLevel int
  36. TeamCultivateRewards float64 `xorm:"Decimal"`
  37. CommunityGift float64 `xorm:"Decimal"`
  38. CommunityNode float64 `xorm:"Decimal"`
  39. }
  40. type BlockInfo struct {
  41. Id int64
  42. BlockNumber int64
  43. }
  44. type RewardsPool struct {
  45. Id int64
  46. TeamPerformance float64 `xorm:"Decimal"`
  47. TeamCultivate float64 `xorm:"Decimal"`
  48. TotalPool float64 `xorm:"Decimal"`
  49. }
  50. type UserTxs struct {
  51. Id int64
  52. Addr string
  53. Hash string
  54. OpTime string
  55. }
  56. type AddrBill struct {
  57. Id int64
  58. Addr string
  59. Amount float64 `xorm:"Decimal"`
  60. BillType int
  61. CreateTime string
  62. }
  63. type UserAddr struct {
  64. Addr string `xorm:"pk"`
  65. IdFlag int
  66. Pid int
  67. RealPid int
  68. PidFlag string
  69. People int
  70. Level int
  71. RemovePeople int
  72. TeamBoss int
  73. BadTime string
  74. Msg string
  75. LockAmount1 float64 `xorm:"Decimal"`
  76. LockAmount2 float64 `xorm:"Decimal"`
  77. Profit1 float64 `xorm:"Decimal"`
  78. Profit2 float64 `xorm:"Decimal"`
  79. Profit3 float64 `xorm:"Decimal"`
  80. Profit4 float64 `xorm:"Decimal"`
  81. Amount float64 `xorm:"Decimal"`
  82. Price float64 `xorm:"Decimal"`
  83. UseAmount float64 `xorm:"Decimal"`
  84. AmountLv float64 `xorm:"Decimal"`
  85. Hash string
  86. Block int64
  87. CreateTime string
  88. }
  89. type CommonInfo struct {
  90. Id int64
  91. Amount float64 `xorm:"Decimal"`
  92. SupplyAmount float64 `xorm:"Decimal"`
  93. SupplyTime string
  94. }
  95. type SuccessBill struct {
  96. Id int64
  97. Addr string
  98. Amount float64 `xorm:"Decimal"`
  99. Status int
  100. Block int64
  101. Hash string
  102. FromAddr string
  103. Ty int
  104. CreateTime string
  105. }
  106. type WithdrawalBill struct {
  107. Id int64
  108. Addr string
  109. Amount float64 `xorm:"Decimal"`
  110. Status int
  111. CreateBlock int64
  112. SucBlock int64
  113. Hash string
  114. CreateTime string
  115. }
  116. type TeamUserInfo struct {
  117. Addr string
  118. People int
  119. NftNum int
  120. CreateTime string
  121. }
  122. type Ihot struct {
  123. User common.Address
  124. Referrer common.Address
  125. Amount *big.Int
  126. Price *big.Int
  127. }
  128. type Withdraw struct {
  129. User common.Address
  130. Amount *big.Int
  131. }