magic_stake_queue_info.go 1.0 KB

123456789101112131415161718192021222324
  1. package app
  2. // 引入关联包
  3. import (
  4. "github.com/shopspring/decimal"
  5. )
  6. type MagicStakeQueueInfo struct {
  7. Id int64 `json:"id" gorm:"column:id;type:bigint;comment:id;primarykey;NOT NULL"`
  8. CreatedAt int64 `json:"createdAt" gorm:"column:created_at;type:bigint;comment:创建时间"`
  9. UpdatedAt int64 `json:"updatedAt" gorm:"column:updated_at;type:bigint;comment:更新时间"`
  10. RewardDate string `json:"rewardDate" gorm:"column:reward_date;type:varchar(64);comment:奖励日期;index"`
  11. SuccessOrders int64 `json:"successOrders" gorm:"column:success_orders;type:bigint;comment:排队成功订单数量"`
  12. UpperUsdAmount decimal.Decimal `json:"upperUsdAmount" gorm:"column:upper_usd_amount;type:decimal(25,8);comment:每日可通过USD数量"`
  13. PassedUsdAmount decimal.Decimal `json:"passedUsdAmount" gorm:"column:passed_usd_amount;type:decimal(25,8);comment:已通过USD数量"`
  14. }
  15. func (*MagicStakeQueueInfo) TableName() string {
  16. return "magic_stake_queue_info"
  17. }
  18. func NewMagicStakeQueueInfo() *MagicStakeQueueInfo {
  19. return &MagicStakeQueueInfo{}
  20. }