互动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.0 KiB

5 years ago
  1. package models
  2. import (
  3. "time"
  4. )
  5. const ShakeRedEnvelopeRuleLadderTableName = TableNamePrefix + "shake_red_envelope_ladder"
  6. //摇红包规则阶梯
  7. type ShakeRedEnvelopeRuleLadder struct {
  8. Id int64 `json:"id"`
  9. ShakeRedEnvelopeRuleId int64 `json:"shake_red_envelope_rule_id" description:"红包轮次的id"`
  10. RedEnvelopeNum int64 `json:"red_envelope_num" description:"红包个数"`
  11. Probability float64 `json:"probability" description:"概率"`
  12. Des string `json:"des" xorm:"-" description:"规则描述"`
  13. Single float64 `json:"single" description:"单个金额"`
  14. IsDelete bool `json:"is_delete" xorm:"default(0)" description:"是否删除"`
  15. CreatedAt time.Time `json:"created_at" xorm:"created" description:"创建时间"`
  16. UpdatedAt time.Time `json:"updated_at" xorm:"updated" description:"更新时间"`
  17. }
  18. func (t *ShakeRedEnvelopeRuleLadder) TableName() string {
  19. return ShakeRedEnvelopeRuleLadderTableName
  20. }