multiple_graph_config.go 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package response
  2. import "eta/eta_api/models/data_manage"
  3. // PreviewMultipleGraphConfigResp 预览
  4. type PreviewMultipleGraphConfigResp struct {
  5. CurveData CurveResp `description:"曲线图数据"`
  6. CorrelationData interface{} `description:"相关性数据"`
  7. RollingCorrelationData []interface{} `description:"滚动相关性配置"`
  8. }
  9. type CurveResp struct {
  10. ChartInfo data_manage.ChartInfoView
  11. EdbInfoList []data_manage.ChartEdbInfoMapping
  12. }
  13. type CorrelationResp struct {
  14. ChartInfo data_manage.ChartInfoView
  15. EdbInfoList []*data_manage.ChartEdbInfoMapping
  16. XEdbIdValue []int `description:"柱方图的x轴数据,指标id"`
  17. YDataList []data_manage.YData `description:"柱方图的y轴数据"`
  18. CorrelationChartInfo data_manage.CorrelationInfo `description:"相关性图表信息"`
  19. }
  20. // RollingCorrelationResp 滚动相关性图表
  21. type RollingCorrelationResp struct {
  22. ChartInfo data_manage.ChartInfoView
  23. EdbInfoList []*data_manage.ChartEdbInfoMapping
  24. DataResp interface{}
  25. CorrelationChartInfo data_manage.CorrelationInfo `description:"相关性图表信息"`
  26. }
  27. // MultipleGraphConfigDetailResp 配置详情接口返回
  28. type MultipleGraphConfigDetailResp struct {
  29. EdbInfoList []*data_manage.ChartEdbInfoMapping
  30. MultipleGraphConfig data_manage.MultipleGraphConfig `description:"配置信息"`
  31. ChartMappingList []MultipleGraphConfigChartMapping `description:"关联图表"`
  32. EdbMappingList []MultipleGraphConfigEdbMapping `description:"关联指标"`
  33. }
  34. type MultipleGraphConfigChartMapping struct {
  35. ChartInfoId int `description:"图表id"`
  36. Source int `description:"来源,1:曲线图,2:相关性图;3:滚动相关性图1;4:滚动相关性图2;"`
  37. MultipleLocationSource int `description:"来源,1:曲线图,2:相关性图;3:滚动相关性图1;4:滚动相关性图2;"`
  38. CorrelationExtraConfig string `description:"普通相关性图表额外设置(含图例)-JSON字符串"`
  39. SourcesFrom string `description:"图表来源-JSON字符串"`
  40. }
  41. type MultipleGraphConfigEdbMapping struct {
  42. EdbInfoId int `description:"图表id"`
  43. Source int `description:"来源,1:曲线图,2:相关性图;3:滚动相关性图1;4:滚动相关性图2;"`
  44. MultipleLocationSource int `description:"来源,1:曲线图,2:相关性图;3:滚动相关性图1;4:滚动相关性图2;"`
  45. }