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.
28 lines
1.8 KiB
28 lines
1.8 KiB
2 months ago
|
package models
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type BotStockBlockList struct {
|
||
|
CreateTime time.Time `xorm:"comment('创建时间') DATETIME"`
|
||
|
DownLimit string `xorm:"not null default 0.00 comment('跌停限制 30 表示 30%') DECIMAL(10,2)"`
|
||
|
EndTime time.Time `xorm:"comment('购买结束时间') DATETIME"`
|
||
|
ForcedClosure string `xorm:"not null default 0.00 comment('强制平仓阈值 30 表示 30%') DECIMAL(10,2)"`
|
||
|
Id int `xorm:"not null pk autoincr INT"`
|
||
|
Info string `xorm:"comment('股票简介') TEXT"`
|
||
|
IsDelete int `xorm:"not null default 1 comment('是否删除 1 未删除 2已删除') SMALLINT"`
|
||
|
KeepDecimal int `xorm:"not null default 4 comment('保留小数位') INT"`
|
||
|
Min int `xorm:"not null default 0 comment('最小购买股数') INT"`
|
||
|
Price string `xorm:"comment('单股价格') DECIMAL(36,18)"`
|
||
|
StartTime time.Time `xorm:"comment('开始购买时间') DATETIME"`
|
||
|
Status int `xorm:"not null default 0 comment('启用状态:0未启用,1已启用') TINYINT(1)"`
|
||
|
StockCode string `xorm:"not null default '' comment('股票代码') unique VARCHAR(100)"`
|
||
|
StockName string `xorm:"not null default '' comment('股票名称') VARCHAR(100)"`
|
||
|
Tape int `xorm:"not null default 0 comment('交易所类型 0 未选择 详细见配置') SMALLINT"`
|
||
|
TodayAdd int `xorm:"not null default 3 comment('T+n可卖') SMALLINT"`
|
||
|
Type int `xorm:"comment('市场类型:3美股、4印尼股、5马股、6泰股、7印度股、9新加坡股、12港股') index INT"`
|
||
|
UpLimit string `xorm:"not null default 0.00 comment('涨停限制 30 表示 30%') DECIMAL(10,2)"`
|
||
|
UpdateTime time.Time `xorm:"comment('更新时间') DATETIME"`
|
||
|
}
|