package models import ( "time" ) type BotTradeFee struct { AccountType int `xorm:"not null comment('账户类型:1现货,2合约,3美股') index(user_id) TINYINT(1)"` CreateTime time.Time `xorm:"not null comment('时间') DATETIME"` Id int `xorm:"not null pk autoincr INT"` ServiceFee string `xorm:"not null comment('交易手续费用') DECIMAL(36,18)"` TradeNo string `xorm:"not null comment('交易单号') VARCHAR(60)"` TradeType int `xorm:"not null comment('交易类型:1买入,2卖出') index(user_id) TINYINT(1)"` UserId int `xorm:"not null comment('用户ID') index(user_id) INT"` }