tables.go 3.4 KB

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