|
|
@ -1,8 +1,6 @@ |
|
|
|
package models |
|
|
|
|
|
|
|
import ( |
|
|
|
"time" |
|
|
|
|
|
|
|
"github.com/ouxuanserver/osmanthuswine/src/core" |
|
|
|
) |
|
|
|
|
|
|
@ -10,16 +8,14 @@ const LotteryDrawRuleTableName = TableNamePrefix + "lottery_draw_rule" |
|
|
|
|
|
|
|
//抽奖活动规则
|
|
|
|
type LotteryDrawRule struct { |
|
|
|
Id int `json:"id" xorm:"not null pk autoincr INT(11)` |
|
|
|
LotteryDrawActivityId int `json:"lottery_draw_activity_id" description:"红包轮次的id"` |
|
|
|
Model `xorm:"extends"` |
|
|
|
|
|
|
|
LotteryDrawActivityId int `json:"lottery_draw_activity_id" description:"红包轮次的id"` |
|
|
|
LotteryDrawRuleLadders []*LotteryDrawRuleLadder `json:"lottery_draw_rule_ladder" xorm:"-" description:"阶梯"` |
|
|
|
AreaId int `json:"area_id" description:"地区id"` |
|
|
|
AreaId int `json:"area_id" description:"地区id"` |
|
|
|
AreaStatus string `json:"area_status" description:"多地区[开启,关闭]"` |
|
|
|
UseTimes int `json:"use_times" description:"使用次数"` |
|
|
|
UseTimes int `json:"use_times" description:"使用次数"` |
|
|
|
PrizeNum int `json:"prize_num" xorm:"-" description:"奖品总数"` |
|
|
|
IsDelete bool `json:"is_delete" xorm:"default(0)" description:"是否删除"` |
|
|
|
CreatedAt time.Time `json:"-" xorm:"created" description:"创建时间"` |
|
|
|
UpdatedAt time.Time `json:"-" xorm:"updated" description:"更新时间"` |
|
|
|
} |
|
|
|
|
|
|
|
func (t *LotteryDrawRule) TableName() string { |
|
|
|