multiple_graph_config.go 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package request
  2. import "eta/eta_api/models/data_manage"
  3. // SaveMultipleGraphConfigReq 多图配置请求
  4. type SaveMultipleGraphConfigReq struct {
  5. MultipleGraphConfigId int `description:"配置id"`
  6. EdbInfoIdA int `description:"指标A"`
  7. EdbInfoIdB int `description:"指标B"`
  8. Curve data_manage.CurveConfig `description:"曲线图配置"`
  9. Correlation data_manage.CorrelationConfig `description:"相关性配置"`
  10. RollingCorrelation []data_manage.RollingCorrelationConfig `description:"滚动相关性配置"`
  11. }
  12. // SaveMultipleGraphChartReq 多图配置的单图保存请求
  13. type SaveMultipleGraphChartReq struct {
  14. Source int `description:"来源,1:曲线图,2:相关性图;3:滚动相关性图1;4:滚动相关性图2;"`
  15. ChartName string `description:"图表名称"`
  16. ClassifyId int `description:"分类id"`
  17. MultipleGraphConfigId int `description:"配置id"`
  18. EdbInfoIdA int `description:"指标A"`
  19. EdbInfoIdB int `description:"指标B"`
  20. Curve data_manage.CurveConfig `description:"曲线图配置"`
  21. Correlation data_manage.CorrelationConfig `description:"相关性配置"`
  22. RollingCorrelation []data_manage.RollingCorrelationConfig `description:"滚动相关性配置"`
  23. IsSaveAs bool `description:"是否另存为,true的话,就是另存为,不会建立与配置的关系"`
  24. CorrelationExtraConfig *data_manage.CorrelationChartInfoExtraConfig `description:"普通相关性图表额外设置(含图例)"`
  25. SourcesFrom *data_manage.ChartInfoSourcesFrom `description:"图表来源"`
  26. }
  27. // SaveMultipleGraphEdbReq 多图配置的单指标保存请求
  28. type SaveMultipleGraphEdbReq struct {
  29. EdbName string `description:"指标名称"`
  30. Frequency string `description:"频度"`
  31. Unit string `description:"单位"`
  32. ClassifyId int `description:"分类id"`
  33. Source int `description:"来源,1:曲线图,2:相关性图;3:滚动相关性图1;4:滚动相关性图2;"`
  34. MultipleGraphConfigId int `description:"配置id"`
  35. EdbInfoIdA int `description:"指标A"`
  36. EdbInfoIdB int `description:"指标B"`
  37. Curve data_manage.CurveConfig `description:"曲线图配置"`
  38. Correlation data_manage.CorrelationConfig `description:"相关性配置"`
  39. RollingCorrelation []data_manage.RollingCorrelationConfig `description:"滚动相关性配置"`
  40. IsSaveAs bool `description:"是否另存为,true的话,就是另存为,不会建立与配置的关系"`
  41. }
  42. type EdbCalculateFormula struct {
  43. BaseCalculateValue int `description:"基础计算窗口"`
  44. BaseCalculateUnit string `description:"基础计算频度"`
  45. LeadValue int `description:"领先期数"`
  46. LeadUnit string `description:"频度"`
  47. CalculateValue int `description:"计算窗口"`
  48. CalculateUnit string `description:"计算频度"`
  49. }