package models import ( "time" ) const ShakeRedEnvelopeRuleLadderTableName = TableNamePrefix + "shake_red_envelope_ladder" //摇红包规则阶梯 type ShakeRedEnvelopeRuleLadder struct { Id int64 `json:"id"` ShakeRedEnvelopeRuleId int64 `json:"shake_red_envelope_rule_id" description:"红包轮次的id"` RedEnvelopeNum int64 `json:"red_envelope_num" description:"红包个数"` Probability float64 `json:"probability" description:"概率"` Des string `json:"des" xorm:"-" description:"规则描述"` Single float64 `json:"single" description:"单个金额"` IsDelete bool `json:"is_delete" xorm:"default(0)" description:"是否删除"` CreatedAt time.Time `json:"created_at" xorm:"created" description:"创建时间"` UpdatedAt time.Time `json:"updated_at" xorm:"updated" description:"更新时间"` } func (t *ShakeRedEnvelopeRuleLadder) TableName() string { return ShakeRedEnvelopeRuleLadderTableName }