|
@@ -13,24 +13,26 @@ import (
|
|
|
|
|
|
// AiPredictModelIndex AI预测模型标的
|
|
|
type AiPredictModelIndex struct {
|
|
|
- AiPredictModelIndexId int `orm:"column(ai_predict_model_index_id);pk" gorm:"primaryKey"`
|
|
|
- IndexName string `description:"标的名称"`
|
|
|
- IndexCode string `description:"自生成的指标编码"`
|
|
|
- ClassifyId int `description:"分类ID"`
|
|
|
- ModelFramework string `description:"模型框架"`
|
|
|
- PredictDate time.Time `description:"预测日期"`
|
|
|
- PredictValue float64 `description:"预测值"`
|
|
|
- PredictFrequency string `description:"预测频度"`
|
|
|
- DirectionAccuracy string `description:"方向准确度"`
|
|
|
- AbsoluteDeviation string `description:"绝对偏差"`
|
|
|
- ExtraConfig string `description:"模型参数"`
|
|
|
- Sort int `description:"排序"`
|
|
|
- SysUserId int `description:"创建人ID"`
|
|
|
- SysUserRealName string `description:"创建人姓名"`
|
|
|
- LeftMin string `description:"图表左侧最小值"`
|
|
|
- LeftMax string `description:"图表左侧最大值"`
|
|
|
- CreateTime time.Time `description:"创建时间"`
|
|
|
- ModifyTime time.Time `description:"修改时间"`
|
|
|
+ AiPredictModelIndexId int `orm:"column(ai_predict_model_index_id);pk" gorm:"primaryKey"`
|
|
|
+ IndexName string `description:"标的名称"`
|
|
|
+ IndexCode string `description:"自生成的指标编码"`
|
|
|
+ ClassifyId int `description:"分类ID"`
|
|
|
+ ModelFramework string `description:"模型框架"`
|
|
|
+ PredictDate time.Time `description:"预测日期"`
|
|
|
+ PredictValue float64 `description:"预测值"`
|
|
|
+ PredictFrequency string `description:"预测频度"`
|
|
|
+ DirectionAccuracy string `description:"方向准确度"`
|
|
|
+ AbsoluteDeviation string `description:"绝对偏差"`
|
|
|
+ ExtraConfig string `description:"模型参数"`
|
|
|
+ Sort int `description:"排序"`
|
|
|
+ SysUserId int `description:"创建人ID"`
|
|
|
+ SysUserRealName string `description:"创建人姓名"`
|
|
|
+ LeftMin string `description:"图表左侧最小值"`
|
|
|
+ LeftMax string `description:"图表左侧最大值"`
|
|
|
+ CreateTime time.Time `description:"创建时间"`
|
|
|
+ ModifyTime time.Time `description:"修改时间"`
|
|
|
+ AiPredictModelIndexConfigId int `gorm:"column:ai_predict_model_index_config_id" description:"标的当前的配置id"`
|
|
|
+ ScriptPath string `gorm:"column:script_path" description:"脚本的路径"`
|
|
|
}
|
|
|
|
|
|
func (m *AiPredictModelIndex) TableName() string {
|
|
@@ -38,44 +40,48 @@ func (m *AiPredictModelIndex) TableName() string {
|
|
|
}
|
|
|
|
|
|
type AiPredictModelIndexCols struct {
|
|
|
- PrimaryId string
|
|
|
- IndexName string
|
|
|
- IndexCode string
|
|
|
- ClassifyId string
|
|
|
- ModelFramework string
|
|
|
- PredictDate string
|
|
|
- PredictValue string
|
|
|
- DirectionAccuracy string
|
|
|
- AbsoluteDeviation string
|
|
|
- ExtraConfig string
|
|
|
- Sort string
|
|
|
- SysUserId string
|
|
|
- SysUserRealName string
|
|
|
- LeftMin string
|
|
|
- LeftMax string
|
|
|
- CreateTime string
|
|
|
- ModifyTime string
|
|
|
+ PrimaryId string
|
|
|
+ IndexName string
|
|
|
+ IndexCode string
|
|
|
+ ClassifyId string
|
|
|
+ ModelFramework string
|
|
|
+ PredictDate string
|
|
|
+ PredictValue string
|
|
|
+ DirectionAccuracy string
|
|
|
+ AbsoluteDeviation string
|
|
|
+ ExtraConfig string
|
|
|
+ Sort string
|
|
|
+ SysUserId string
|
|
|
+ SysUserRealName string
|
|
|
+ LeftMin string
|
|
|
+ LeftMax string
|
|
|
+ CreateTime string
|
|
|
+ ModifyTime string
|
|
|
+ AiPredictModelIndexConfigId string
|
|
|
+ ScriptPath string
|
|
|
}
|
|
|
|
|
|
func (m *AiPredictModelIndex) Cols() AiPredictModelIndexCols {
|
|
|
return AiPredictModelIndexCols{
|
|
|
- PrimaryId: "ai_predict_model_index_id",
|
|
|
- IndexName: "index_name",
|
|
|
- IndexCode: "index_code",
|
|
|
- ClassifyId: "classify_id",
|
|
|
- ModelFramework: "model_framework",
|
|
|
- PredictDate: "predict_date",
|
|
|
- PredictValue: "predict_value",
|
|
|
- DirectionAccuracy: "direction_accuracy",
|
|
|
- AbsoluteDeviation: "absolute_deviation",
|
|
|
- ExtraConfig: "extra_config",
|
|
|
- Sort: "sort",
|
|
|
- SysUserId: "sys_user_id",
|
|
|
- SysUserRealName: "sys_user_real_name",
|
|
|
- LeftMin: "left_min",
|
|
|
- LeftMax: "left_max",
|
|
|
- CreateTime: "create_time",
|
|
|
- ModifyTime: "modify_time",
|
|
|
+ PrimaryId: "ai_predict_model_index_id",
|
|
|
+ IndexName: "index_name",
|
|
|
+ IndexCode: "index_code",
|
|
|
+ ClassifyId: "classify_id",
|
|
|
+ ModelFramework: "model_framework",
|
|
|
+ PredictDate: "predict_date",
|
|
|
+ PredictValue: "predict_value",
|
|
|
+ DirectionAccuracy: "direction_accuracy",
|
|
|
+ AbsoluteDeviation: "absolute_deviation",
|
|
|
+ ExtraConfig: "extra_config",
|
|
|
+ Sort: "sort",
|
|
|
+ SysUserId: "sys_user_id",
|
|
|
+ SysUserRealName: "sys_user_real_name",
|
|
|
+ LeftMin: "left_min",
|
|
|
+ LeftMax: "left_max",
|
|
|
+ CreateTime: "create_time",
|
|
|
+ ModifyTime: "modify_time",
|
|
|
+ AiPredictModelIndexConfigId: "ai_predict_model_index_config_id",
|
|
|
+ ScriptPath: "script_path",
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -185,23 +191,25 @@ func (m *AiPredictModelIndex) GetPageItemsByCondition(condition string, pars []i
|
|
|
|
|
|
// AiPredictModelIndexItem AI预测模型标的信息
|
|
|
type AiPredictModelIndexItem struct {
|
|
|
- IndexId int `description:"标的ID"`
|
|
|
- IndexName string `description:"标的名称"`
|
|
|
- IndexCode string `description:"自生成的指标编码"`
|
|
|
- ClassifyId int `description:"分类ID"`
|
|
|
- ClassifyName string `description:"分类名称"`
|
|
|
- ModelFramework string `description:"模型框架"`
|
|
|
- PredictDate string `description:"预测日期"`
|
|
|
- PredictValue float64 `description:"预测值"`
|
|
|
- PredictFrequency string `description:"预测频度"`
|
|
|
- DirectionAccuracy string `description:"方向准确度"`
|
|
|
- AbsoluteDeviation string `description:"绝对偏差"`
|
|
|
- ExtraConfig string `description:"模型参数"`
|
|
|
- SysUserId int `description:"创建人ID"`
|
|
|
- SysUserRealName string `description:"创建人姓名"`
|
|
|
- CreateTime string `description:"创建时间"`
|
|
|
- ModifyTime string `description:"修改时间"`
|
|
|
- SearchText string `description:"搜索结果(含高亮)"`
|
|
|
+ IndexId int `description:"标的ID"`
|
|
|
+ IndexName string `description:"标的名称"`
|
|
|
+ IndexCode string `description:"自生成的指标编码"`
|
|
|
+ ClassifyId int `description:"分类ID"`
|
|
|
+ ClassifyName string `description:"分类名称"`
|
|
|
+ ModelFramework string `description:"模型框架"`
|
|
|
+ PredictDate string `description:"预测日期"`
|
|
|
+ PredictValue float64 `description:"预测值"`
|
|
|
+ PredictFrequency string `description:"预测频度"`
|
|
|
+ DirectionAccuracy string `description:"方向准确度"`
|
|
|
+ AbsoluteDeviation string `description:"绝对偏差"`
|
|
|
+ ExtraConfig string `description:"模型参数"`
|
|
|
+ SysUserId int `description:"创建人ID"`
|
|
|
+ SysUserRealName string `description:"创建人姓名"`
|
|
|
+ CreateTime string `description:"创建时间"`
|
|
|
+ ModifyTime string `description:"修改时间"`
|
|
|
+ SearchText string `description:"搜索结果(含高亮)"`
|
|
|
+ AiPredictModelIndexConfigId int `gorm:"column:ai_predict_model_index_config_id" description:"标的当前的配置id"`
|
|
|
+ ScriptPath string `gorm:"column:script_path" description:"脚本的路径"`
|
|
|
}
|
|
|
|
|
|
func (m *AiPredictModelIndex) Format2Item() (item *AiPredictModelIndexItem) {
|
|
@@ -219,6 +227,8 @@ func (m *AiPredictModelIndex) Format2Item() (item *AiPredictModelIndexItem) {
|
|
|
item.ExtraConfig = m.ExtraConfig
|
|
|
item.SysUserId = m.SysUserId
|
|
|
item.SysUserRealName = m.SysUserRealName
|
|
|
+ item.AiPredictModelIndexConfigId = m.AiPredictModelIndexConfigId
|
|
|
+ item.ScriptPath = m.ScriptPath
|
|
|
item.CreateTime = utils.TimeTransferString(utils.FormatDateTime, m.CreateTime)
|
|
|
item.ModifyTime = utils.TimeTransferString(utils.FormatDateTime, m.ModifyTime)
|
|
|
return
|