fix bug
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"git.apinb.com/bsm-sdk/core/database"
|
||||
)
|
||||
|
||||
type StratDesc struct {
|
||||
ID uint `gorm:"primarykey"`
|
||||
CreatedAt time.Time
|
||||
StratModelID uint `gorm:"column:strat_model_id"`
|
||||
Hash string `gorm:"uniqueIndex"`
|
||||
Desc string
|
||||
}
|
||||
|
||||
func init() {
|
||||
database.AppendMigrate(&StratDesc{})
|
||||
}
|
||||
|
||||
// TableName 设置表名
|
||||
func (StratDesc) TableName() string {
|
||||
return "strat_desc"
|
||||
}
|
||||
@@ -16,21 +16,25 @@ type StratModel struct {
|
||||
StratKey string
|
||||
Ymd int
|
||||
Code string
|
||||
UpDateDay int //上市时间,天数
|
||||
IndustryScore int // 行业分组
|
||||
StScore int // 是否是ST
|
||||
GtAmount int // 每日交易额大于设定值
|
||||
GtPrice int // 最近20日交易日价格大于设定值
|
||||
GtRoe int // ROE 是否大于设定值
|
||||
UpDateDay int //上市时间,天数
|
||||
IndustryScore int // 行业分组
|
||||
StScore int // 是否是ST
|
||||
GtAmount int // 每日交易额大于设定值
|
||||
GtPrice int // 最近20日交易日价格大于设定值
|
||||
RoeScore int // ROE 是否大于设定值
|
||||
ValRoe float64 // ROE 值
|
||||
ScoreRsi int
|
||||
RecommendDesc string // 推荐描述
|
||||
Status int // 状态 -1:不推荐,0:正常 1:推荐
|
||||
|
||||
// macd
|
||||
MacdScore int
|
||||
MacdVal float64
|
||||
|
||||
// 值
|
||||
ValRoe float64
|
||||
ValRsiOversold int
|
||||
ValRsiPrve float64
|
||||
ValRsiLast float64
|
||||
Desc []StratDesc `gorm:"foreignKey:StratModelID"`
|
||||
|
||||
//AI
|
||||
AiSummary string
|
||||
|
||||
Reference in New Issue
Block a user