互动
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.1 KiB

package models
import (
"time"
)
const ShakeRedEnvelopeRuleLadderTableName = TableNamePrefix + "shake_red_envelope_rule_ladder"
//摇红包规则阶梯
type ShakeRedEnvelopeRuleLadder struct {
Id int `json:"id" xorm:"not null autoincr pk INT(11)"`
ShakeRedEnvelopeRuleId int `json:"shake_red_envelope_rule_id" description:"红包轮次的id"`
RedEnvelopeNum int `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
}