blockData.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. package models
  2. import (
  3. "math/big"
  4. "github.com/ethereum/go-ethereum/common"
  5. )
  6. type RewardDetails struct {
  7. Id int64
  8. Addr string
  9. AvailableClaim float64 `xorm:"Decimal"`
  10. Claimed float64 `xorm:"Decimal"`
  11. AvailableReinput float64 `xorm:"Decimal"`
  12. Reinputed float64 `xorm:"Decimal"`
  13. }
  14. type AddrBill struct {
  15. Id int64
  16. Addr string
  17. Amount float64 `xorm:"Decimal"`
  18. BillType int
  19. CreateTime string
  20. }
  21. type UserAddr struct {
  22. Addr string `xorm:"pk"`
  23. IdFlag int
  24. Pid int
  25. RealPid int
  26. PidFlag string
  27. People int
  28. Level int
  29. RemovePeople int
  30. TeamBoss int
  31. BadTime string
  32. Msg string
  33. LockAmount1 float64 `xorm:"Decimal"`
  34. LockAmount2 float64 `xorm:"Decimal"`
  35. Profit1 float64 `xorm:"Decimal"`
  36. Profit2 float64 `xorm:"Decimal"`
  37. Profit3 float64 `xorm:"Decimal"`
  38. Profit4 float64 `xorm:"Decimal"`
  39. Amount float64 `xorm:"Decimal"`
  40. Price float64 `xorm:"Decimal"`
  41. UseAmount float64 `xorm:"Decimal"`
  42. AmountLv float64 `xorm:"Decimal"`
  43. Hash string
  44. Block int64
  45. CreateTime string
  46. }
  47. type CommonInfo struct {
  48. Id int64
  49. Amount float64 `xorm:"Decimal"`
  50. SupplyAmount float64 `xorm:"Decimal"`
  51. SupplyTime string
  52. }
  53. type SuccessBill struct {
  54. Id int64
  55. Addr string
  56. Amount float64 `xorm:"Decimal"`
  57. Status int
  58. Block int64
  59. Hash string
  60. FromAddr string
  61. Ty int
  62. CreateTime string
  63. }
  64. type WithdrawalBill struct {
  65. Id int64
  66. Addr string
  67. Amount float64 `xorm:"Decimal"`
  68. Status int
  69. CreateBlock int64
  70. SucBlock int64
  71. Hash string
  72. CreateTime string
  73. }
  74. type TeamUserInfo struct {
  75. Addr string
  76. People int
  77. NftNum int
  78. CreateTime string
  79. }
  80. type Ihot struct {
  81. User common.Address
  82. Referrer common.Address
  83. Amount *big.Int
  84. Price *big.Int
  85. }
  86. type Withdraw struct {
  87. User common.Address
  88. Amount *big.Int
  89. }