warehouse.go 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package trade_analysis
  2. // WarehouseExtraConfig 建仓图表配置
  3. type WarehouseExtraConfig struct {
  4. MultipleGraphConfigId int `description:"多图配置ID"`
  5. WarehouseChartType int `description:"图表类型: 1-多单图; 2-空单图; 3-净多单图"`
  6. Exchange string `description:"交易所标识"`
  7. ClassifyName string `description:"品种名称"`
  8. Contracts []string `description:"合约代码"`
  9. Companies []string `description:"期货公司, 不超过5个"`
  10. PredictRatio float64 `description:"预估参数, 0-1之间"`
  11. }
  12. // WarehouseChartPars 建仓单表配置
  13. //type WarehouseChartPars struct {
  14. // WarehouseChartType int `description:"图表类型: 1-多单图; 2-空单图; 3-净多单图"`
  15. // DateType int `description:"日期类型"`
  16. // DateTypeNum int `description:"日期类型=25(N月)时的N值"`
  17. // StartDate string `description:"自定义开始日期"`
  18. // EndDate string `description:"自定义结束日期"`
  19. // //ChartThemeId int `description:"图表主题ID"`
  20. // ChartEdbInfoList []*models.ChartSaveItem `description:"指标及配置信息"`
  21. // //SourcesFrom *data_manage.ChartInfoSourcesFrom `description:"图表来源"`
  22. //}
  23. // WarehouseChartDataResp 图表详情返回信息
  24. type WarehouseChartDataResp struct {
  25. WarehouseExtraConfig
  26. MultiEdbMappings []*WarehouseEdbSaveItem
  27. }
  28. // WarehouseEdbSaveItem 建仓指标保存
  29. type WarehouseEdbSaveItem struct {
  30. EdbInfoId int `description:"指标ID"`
  31. EdbName string `description:"指标名称"`
  32. Unit string `description:"单位"`
  33. Frequency string `description:"频度"`
  34. ClassifyId int `description:"指标库分类ID"`
  35. UniqueFlag string `description:"唯一标识"`
  36. //ExtraConfig string `description:"配置信息-JSON"`
  37. }
  38. type WarehouseEdbSaveRespItem struct {
  39. WarehouseEdbSaveItem
  40. Tips string `description:"提示信息"`
  41. ErrMsg string `description:"错误信息"`
  42. }