multiple_graph_config.go 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package response
  2. import "hongze/hz_crm_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. XDateTimeValue []string `description:"柱方图的x轴数据,指标id"`
  25. YDataList []data_manage.YData `description:"柱方图的y轴数据"`
  26. CorrelationChartInfo data_manage.CorrelationInfo `description:"相关性图表信息"`
  27. }
  28. // MultipleGraphConfigDetailResp 配置详情接口返回
  29. type MultipleGraphConfigDetailResp struct {
  30. EdbInfoList []*data_manage.ChartEdbInfoMapping
  31. MultipleGraphConfig data_manage.MultipleGraphConfig `description:"配置信息"`
  32. ChartMappingList []MultipleGraphConfigChartMapping `description:"关联图表"`
  33. EdbMappingList []MultipleGraphConfigEdbMapping `description:"关联指标"`
  34. }
  35. type MultipleGraphConfigChartMapping struct {
  36. ChartInfoId int `description:"图表id"`
  37. Source int `description:"来源,1:曲线图,2:相关性图;3:滚动相关性图1;4:滚动相关性图2;"`
  38. MultipleLocationSource int `description:"来源,1:曲线图,2:相关性图;3:滚动相关性图1;4:滚动相关性图2;"`
  39. }
  40. type MultipleGraphConfigEdbMapping struct {
  41. EdbInfoId int `description:"图表id"`
  42. Source int `description:"来源,1:曲线图,2:相关性图;3:滚动相关性图1;4:滚动相关性图2;"`
  43. MultipleLocationSource int `description:"来源,1:曲线图,2:相关性图;3:滚动相关性图1;4:滚动相关性图2;"`
  44. }