This commit is contained in:
2026-04-08 10:26:22 +08:00
parent cd15dafcee
commit f27bd75278
2 changed files with 89 additions and 70 deletions

View File

@@ -77,10 +77,6 @@ type CollectorTick struct {
Volume int64 `json:"volume" gorm:"not null;default:0;comment:成交量(股)"`
Amount float64 `json:"amount" gorm:"type:decimal(15,2);not null;default:0;comment:成交额(元)"`
PVolume int64 `json:"pvolume" gorm:"not null;default:0;column:pvolume;comment:累积成交量"`
BidPrices []float64 `json:"bid_prices" gorm:"type:decimal(10,4)[];column:bid_prices;comment:买盘价格数组(买一到买五)"`
BidVolumes []int `json:"bid_volumes" gorm:"type:integer[];column:bid_volumes;comment:买盘数量数组(买一到买五)"`
AskPrices []float64 `json:"ask_prices" gorm:"type:decimal(10,4)[];column:ask_prices;comment:卖盘价格数组(卖一到卖五)"`
AskVolumes []int `json:"ask_volumes" gorm:"type:integer[];column:ask_volumes;comment:卖盘数量数组(卖一到卖五)"`
Time int64 `json:"time" gorm:"not null;index;comment:行情时间戳"`
TimeTag string `json:"timetag" gorm:"type:varchar(50);column:timetag;comment:时间标签(格式化时间字符串)"`
StockStatus int `json:"stock_status" gorm:"not null;default:0;column:stock_status;comment:股票状态"`