Commit f408015e authored by szh's avatar szh

update

parent 5fda1f1c
package elfGame
const (
PointTypeGame = iota
PointTypeInviter // 邀请
PointTypeHelp // 助力
PointTypeGameGuide // 游戏指导
PointTypeFrozen // 锁仓奖励
PointTypeFrozenPre // 锁仓指导
PointTypeRecover // 回收
)
const (
OrderType = iota // 精灵召唤
OrderTypeTool //道具购买
OrderTypeCap //工坊开启
OrderTypeSecond // 二次召唤
)
\ No newline at end of file
This diff is collapsed.
......@@ -84,6 +84,11 @@ func (obj *_AirDropTxMgr) WithToID(toID int) Option {
return optionFunc(func(o *options) { o.query["to_id"] = toID })
}
// WithTo to获取
func (obj *_AirDropTxMgr) WithTo(to string) Option {
return optionFunc(func(o *options) { o.query["to"] = to })
}
// WithAmount amount获取
func (obj *_AirDropTxMgr) WithAmount(amount int) Option {
return optionFunc(func(o *options) { o.query["amount"] = amount })
......
......@@ -11,6 +11,7 @@ type AirDropTx struct {
Height int `gorm:"column:height" json:"height"`
UserID int `gorm:"column:user_id" json:"userId"`
ToID int `gorm:"column:to_id" json:"toId"`
To string `gorm:"column:to" json:"to"`
Amount int `gorm:"column:amount" json:"amount"`
Blocktime int `gorm:"column:blocktime" json:"blocktime"`
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment