blockData.go 1.5 KB

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