deving
This commit is contained in:
24
internal/models/stock_args.go
Normal file
24
internal/models/stock_args.go
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user