tables.go 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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 int //我的上级
  10. DirectNumber int //直推总人数
  11. IndirectRewards float64 `xorm:"Decimal"`
  12. Indirect int //上上级
  13. IndirectNumber int //间推总人数
  14. DirectRewards float64 `xorm:"Decimal"`
  15. TeamMembers 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. PerformanceLevel int
  31. PerformanceRewards float64 `xorm:"Decimal"`
  32. TotalTeamCultivate float64 `xorm:"Decimal"`
  33. TeamCultivateLevel 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 UserTxs struct {
  43. Id int64
  44. Addr string
  45. Hash string
  46. OpTime string
  47. }
  48. type AddrBill struct {
  49. Id int64
  50. Addr string
  51. Amount float64 `xorm:"Decimal"`
  52. BillType int
  53. CreateTime string
  54. }
  55. type UserAddr struct {
  56. Addr string `xorm:"pk"`
  57. IdFlag int
  58. Pid int
  59. RealPid int
  60. PidFlag string
  61. People int
  62. Level int
  63. RemovePeople int
  64. TeamBoss int
  65. BadTime string
  66. Msg string
  67. LockAmount1 float64 `xorm:"Decimal"`
  68. LockAmount2 float64 `xorm:"Decimal"`
  69. Profit1 float64 `xorm:"Decimal"`
  70. Profit2 float64 `xorm:"Decimal"`
  71. Profit3 float64 `xorm:"Decimal"`
  72. Profit4 float64 `xorm:"Decimal"`
  73. Amount float64 `xorm:"Decimal"`
  74. Price float64 `xorm:"Decimal"`
  75. UseAmount float64 `xorm:"Decimal"`
  76. AmountLv float64 `xorm:"Decimal"`
  77. Hash string
  78. Block int64
  79. CreateTime string
  80. }
  81. type CommonInfo struct {
  82. Id int64
  83. Amount float64 `xorm:"Decimal"`
  84. SupplyAmount float64 `xorm:"Decimal"`
  85. SupplyTime string
  86. }
  87. type SuccessBill struct {
  88. Id int64
  89. Addr string
  90. Amount float64 `xorm:"Decimal"`
  91. Status int
  92. Block int64
  93. Hash string
  94. FromAddr string
  95. Ty int
  96. CreateTime string
  97. }
  98. type WithdrawalBill struct {
  99. Id int64
  100. Addr string
  101. Amount float64 `xorm:"Decimal"`
  102. Status int
  103. CreateBlock int64
  104. SucBlock int64
  105. Hash string
  106. CreateTime string
  107. }
  108. type TeamUserInfo struct {
  109. Addr string
  110. People int
  111. NftNum int
  112. CreateTime string
  113. }
  114. type Ihot struct {
  115. User common.Address
  116. Referrer common.Address
  117. Amount *big.Int
  118. Price *big.Int
  119. }
  120. type Withdraw struct {
  121. User common.Address
  122. Amount *big.Int
  123. }