multiple_graph_config.go 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package request
  2. import "hongze/hz_crm_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. }
  25. // SaveMultipleGraphEdbReq 多图配置的单指标保存请求
  26. type SaveMultipleGraphEdbReq struct {
  27. EdbName string `description:"指标名称"`
  28. Frequency string `description:"频度"`
  29. Unit string `description:"单位"`
  30. ClassifyId int `description:"分类id"`
  31. Source int `description:"来源,1:曲线图,2:相关性图;3:滚动相关性图1;4:滚动相关性图2;"`
  32. MultipleGraphConfigId int `description:"配置id"`
  33. EdbInfoIdA int `description:"指标A"`
  34. EdbInfoIdB int `description:"指标B"`
  35. Curve data_manage.CurveConfig `description:"曲线图配置"`
  36. Correlation data_manage.CorrelationConfig `description:"相关性配置"`
  37. RollingCorrelation []data_manage.RollingCorrelationConfig `description:"滚动相关性配置"`
  38. IsSaveAs bool `description:"是否另存为,true的话,就是另存为,不会建立与配置的关系"`
  39. }
  40. type EdbCalculateFormula struct {
  41. BaseCalculateValue int `description:"基础计算窗口"`
  42. BaseCalculateUnit string `description:"基础计算频度"`
  43. LeadValue int `description:"领先期数"`
  44. LeadUnit string `description:"频度"`
  45. CalculateValue int `description:"计算窗口"`
  46. CalculateUnit string `description:"计算频度"`
  47. }