Browse Source

fix:bug

dev
Tooooommy 4 years ago
parent
commit
14acac3a72
  1. 2
      models/bully_screen_wallet_hisotry.go
  2. 8
      models/lottery_draw_rule.go
  3. 8
      models/order_draw_activity.go

2
models/bully_screen_wallet_hisotry.go

@ -7,7 +7,7 @@ const BSWalletHistoryTableName = TableNamePrefix + "bully_screen_wallet_history"
type BullyScreenWalletHistory struct {
Id int `json:"id" xorm:"not null autoincr pk INT(11)"`
CustomerId int `json:"customer_id" xorm:"not null default 0 comment('客户表id') INT(11)"`
UserId int `json:"customer_id" xorm:"not null default 0 comment('客户表id') INT(11)"`
UserId int `json:"user_id" xorm:"not null default 0 comment('客户表id') INT(11)"`
Money float64 `json:"money" xorm:"not null default 0.00 comment('金额[分正负]') DECIMAL(10)"`
HisBalance string `json:"his_balance" xorm:"not null default '0' comment('历史霸屏余额') VARCHAR(128)"`
Type string `json:"type" xorm:"not null default '' comment('记录类型 霸屏/提现') VARCHAR(128)"`

8
models/lottery_draw_rule.go

@ -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)`
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"`
AreaStatus string `json:"area_status" 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 {

8
models/order_draw_activity.go

@ -1,8 +1,6 @@
package models
import (
"time"
"github.com/ouxuanserver/osmanthuswine/src/core"
)
@ -10,16 +8,14 @@ const OrderDrawActivityTableName = TableNamePrefix + "order_draw_activity"
//订单抽奖活动
type OrderDrawActivity struct {
Id int `json:"id" xorm:"not null autoincr pk INT(11)`
Model `xorm:"extends"`
ActivityId int `json:"activity_id" description:"活动的id"`
CreatorId int `json:"creator_id"`
OrderDrawActivityName string `json:"order_draw_activity_name"`
OrderDrawRule *OrderDrawRule `json:"order_draw_rule" xorm:"-"`
MoreAreaMode string `json:"more_area_mode"`
IsSuccess bool `json:"is_success"`
IsDelete bool `json:"is_delete" xorm:"default(0)"`
CreatedAt time.Time `json:"-" xorm:"created" description:"创建时间"`
UpdatedAt time.Time `json:"-" xorm:"updated" description:"更新时间"`
}
func (t *OrderDrawActivity) TableName() string {

Loading…
Cancel
Save