tables.go 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. Indirect int
  11. TeamMembers string
  12. AvailableClaim float64 `xorm:"Decimal"`
  13. TotalClaimed float64 `xorm:"Decimal"`
  14. AvailableReinput float64 `xorm:"Decimal"`
  15. TotalReinputed float64 `xorm:"Decimal"`
  16. State int
  17. OpTime string
  18. }
  19. type UserTxs struct {
  20. Id int64
  21. Addr string
  22. Hash string
  23. OpTime string
  24. }
  25. type AddrBill struct {
  26. Id int64
  27. Addr string
  28. Amount float64 `xorm:"Decimal"`
  29. BillType int
  30. CreateTime string
  31. }
  32. type UserAddr struct {
  33. Addr string `xorm:"pk"`
  34. IdFlag int
  35. Pid int
  36. RealPid int
  37. PidFlag string
  38. People int
  39. Level int
  40. RemovePeople int
  41. TeamBoss int
  42. BadTime string
  43. Msg string
  44. LockAmount1 float64 `xorm:"Decimal"`
  45. LockAmount2 float64 `xorm:"Decimal"`
  46. Profit1 float64 `xorm:"Decimal"`
  47. Profit2 float64 `xorm:"Decimal"`
  48. Profit3 float64 `xorm:"Decimal"`
  49. Profit4 float64 `xorm:"Decimal"`
  50. Amount float64 `xorm:"Decimal"`
  51. Price float64 `xorm:"Decimal"`
  52. UseAmount float64 `xorm:"Decimal"`
  53. AmountLv float64 `xorm:"Decimal"`
  54. Hash string
  55. Block int64
  56. CreateTime string
  57. }
  58. type CommonInfo struct {
  59. Id int64
  60. Amount float64 `xorm:"Decimal"`
  61. SupplyAmount float64 `xorm:"Decimal"`
  62. SupplyTime string
  63. }
  64. type SuccessBill struct {
  65. Id int64
  66. Addr string
  67. Amount float64 `xorm:"Decimal"`
  68. Status int
  69. Block int64
  70. Hash string
  71. FromAddr string
  72. Ty int
  73. CreateTime string
  74. }
  75. type WithdrawalBill struct {
  76. Id int64
  77. Addr string
  78. Amount float64 `xorm:"Decimal"`
  79. Status int
  80. CreateBlock int64
  81. SucBlock int64
  82. Hash string
  83. CreateTime string
  84. }
  85. type TeamUserInfo struct {
  86. Addr string
  87. People int
  88. NftNum int
  89. CreateTime string
  90. }
  91. type Ihot struct {
  92. User common.Address
  93. Referrer common.Address
  94. Amount *big.Int
  95. Price *big.Int
  96. }
  97. type Withdraw struct {
  98. User common.Address
  99. Amount *big.Int
  100. }