package trade_analysis // WarehouseExtraConfig 建仓图表配置 type WarehouseExtraConfig struct { MultipleGraphConfigId int `gorm:"primaryKey;autoIncrement;column:multiple_graph_config_id" description:"多图配置ID"` WarehouseChartType int `gorm:"column:warehouse_chart_type" description:"图表类型: 1-多单图; 2-空单图; 3-净多单图"` Exchange string `gorm:"column:exchange" description:"交易所标识"` ClassifyName string `gorm:"column:classify_name" description:"品种名称"` Contracts []string `gorm:"-" description:"合约代码"` // 通常不直接映射slice到数据库列 Companies []string `gorm:"-" description:"期货公司, 不超过5个"` // 同上 PredictRatio float64 `gorm:"column:predict_ratio" description:"预估参数, 0-1之间"` } // WarehouseChartDataResp 图表详情返回信息 type WarehouseChartDataResp struct { WarehouseExtraConfig MultiEdbMappings []*WarehouseEdbSaveItem } // WarehouseEdbSaveItem 建仓指标保存 type WarehouseEdbSaveItem struct { EdbInfoId int `description:"指标ID"` EdbName string `description:"指标名称"` Unit string `description:"单位"` Frequency string `description:"频度"` ClassifyId int `description:"指标库分类ID"` UniqueFlag string `description:"唯一标识"` //ExtraConfig string `description:"配置信息-JSON"` } type WarehouseEdbSaveRespItem struct { WarehouseEdbSaveItem Tips string `description:"提示信息"` ErrMsg string `description:"错误信息"` }