magic_user_profit.go 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package app
  2. // 引入关联包
  3. import (
  4. "github.com/shopspring/decimal"
  5. )
  6. type MagicUserProfit struct {
  7. CreatedAt int64 `json:"createdAt" gorm:"column:created_at;type:bigint;comment:创建时间"`
  8. UpdatedAt int64 `json:"updatedAt" gorm:"column:updated_at;type:bigint;comment:更新时间"`
  9. UserId int64 `json:"userId" gorm:"column:user_id;type:bigint;comment:用户ID;primarykey;NOT NULL"`
  10. Uid string `json:"uid" gorm:"column:uid;type:varchar(64);comment:交易所ID;index;unique:uni_magic_user_profit_uid"`
  11. ProfitBalance decimal.Decimal `json:"profitBalance" gorm:"column:profit_balance;type:decimal(25,8);comment:收益余额"`
  12. CumClaimLevel int64 `json:"cumClaimLevel" gorm:"column:cum_claim_level;type:bigint;comment:已领取等级"`
  13. CumClaimLevelUpgradeQuantity decimal.Decimal `json:"cumClaimLevelUpgradeQuantity" gorm:"column:cum_claim_level_upgrade_quantity;type:decimal(25,8);comment:累计领取等级升级数量"`
  14. CumClaimLevelUpgradeUsdAmount decimal.Decimal `json:"cumClaimLevelUpgradeUsdAmount" gorm:"column:cum_claim_level_upgrade_usd_amount;type:decimal(25,8);comment:累计领取等级升级USD价值"`
  15. TodayNodeProfitQuantity decimal.Decimal `json:"todayNodeProfitQuantity" gorm:"column:today_node_profit_quantity;type:decimal(25,8);comment:当日节点奖励产出系统币"`
  16. NodeProfitQuantity decimal.Decimal `json:"nodeProfitQuantity" gorm:"column:node_profit_quantity;type:decimal(25,8);comment:累计节点产出系统币"`
  17. NodeProfitUsdAmount decimal.Decimal `json:"nodeProfitUsdAmount" gorm:"column:node_profit_usd_amount;type:decimal(25,8);comment:累计节点产出USD价值"`
  18. PersonPledgeRankingProfit decimal.Decimal `json:"personPledgeRankingProfit" gorm:"column:person_pledge_ranking_profit;type:decimal(25,8);comment:个人质押排行榜收益"`
  19. PersonPledgeRankingUsdProfit decimal.Decimal `json:"personPledgeRankingUsdProfit" gorm:"column:person_pledge_ranking_usd_profit;type:decimal(25,8);comment:个人质押排行榜收益U"`
  20. FewAcRankingProfit decimal.Decimal `json:"fewAcRankingProfit" gorm:"column:few_ac_ranking_profit;type:decimal(25,8);comment:小区业绩排行榜收益"`
  21. FewAcRankingUsdProfit decimal.Decimal `json:"fewAcRankingUsdProfit" gorm:"column:few_ac_ranking_usd_profit;type:decimal(25,8);comment:小区业绩排行榜收益U"`
  22. TodayDynamicProfitQuantity decimal.Decimal `json:"todayDynamicProfitQuantity" gorm:"column:today_dynamic_profit_quantity;type:decimal(25,8);comment:当日动态奖励产出系统币"`
  23. DynamicProfitQuantity decimal.Decimal `json:"dynamicProfitQuantity" gorm:"column:dynamic_profit_quantity;type:decimal(25,8);comment:累计动态奖励系统币"`
  24. DynamicProfitUsdAmount decimal.Decimal `json:"dynamicProfitUsdAmount" gorm:"column:dynamic_profit_usd_amount;type:decimal(25,8);comment:累计动态奖励USD价值"`
  25. StaticProfitQuantity decimal.Decimal `json:"staticProfitQuantity" gorm:"column:static_profit_quantity;type:decimal(25,8);comment:累计静态产出系统币"`
  26. StaticProfitUsdAmount decimal.Decimal `json:"staticProfitUsdAmount" gorm:"column:static_profit_usd_amount;type:decimal(25,8);comment:累计静态产出USD价值"`
  27. TotalProfitQuantity decimal.Decimal `json:"totalProfitQuantity" gorm:"column:total_profit_quantity;type:decimal(25,8);comment:总收益币"`
  28. TotalProfitUsd decimal.Decimal `json:"totalProfitUsd" gorm:"column:total_profit_usd;type:decimal(25,8);comment:总收益USD价值"`
  29. Version int64 `json:"version" gorm:"column:version;type:bigint;comment:事务版本"`
  30. }
  31. func (*MagicUserProfit) TableName() string {
  32. return "magic_user_profit"
  33. }
  34. func NewMagicUserProfit() *MagicUserProfit {
  35. return &MagicUserProfit{}
  36. }