This commit is contained in:
yanweidong
2026-01-27 19:06:01 +08:00
parent 9b7f6ed2cf
commit 30cedbcadb
2 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package models
import "git.apinb.com/bsm-sdk/core/database"
// StockBasic 股票参数配置表
type StockArgs struct {
ID uint `gorm:"primarykey"`
TsCode string `gorm:"type:varchar(50);not null;index;comment:TS代码"`
Config string `gorm:"type:varchar(1000);not null;index;comment:配置项"`
RsiPeriod int
RsiOversold int
RsiOverbought int
EmaFast int
EmaSlow int
}
func init() {
database.AppendMigrate(&StockArgs{})
}
// TableName 设置表名
func (StockArgs) TableName() string {
return "stock_args"
}