line_equation.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package response
  2. import (
  3. "eta/eta_mobile/models/data_manage"
  4. "eta/eta_mobile/models/data_manage/line_equation/request"
  5. )
  6. type ChartInfoResp struct {
  7. List []ChartDataResp `description:"数据列表"`
  8. }
  9. // ChartDataResp 图表数据
  10. type ChartDataResp struct {
  11. LatestDate string `description:"真实数据的日期"`
  12. Name string `description:"名称"`
  13. NameEn string `description:"英文名称"`
  14. EdbInfoCategoryType int `description:"普通数据还是预测数据,0:普通,1:预测"`
  15. MaxData float64 `description:"最大值"`
  16. MinData float64 `description:"最小值"`
  17. DataList []data_manage.EdbDataList
  18. }
  19. // MultipleGraphConfigDetailResp 配置详情接口返回
  20. type MultipleGraphConfigDetailResp struct {
  21. MultipleGraphConfigId int
  22. LineChartInfoConfig request.LineChartInfoReq
  23. EdbInfoList []*data_manage.ChartEdbInfoMapping
  24. ChartMappingList []MultipleGraphConfigChartMapping `description:"关联图表"`
  25. }
  26. type MultipleGraphConfigChartMapping struct {
  27. ChartInfoId int `description:"图表id"`
  28. Source int `description:"来源,5:斜率图,6:截距图;7:相关性图;"`
  29. ChartName string `description:"图表名称"`
  30. ChartClassifyId int `description:"图表分类id"`
  31. }
  32. type MultipleGraphConfigEdbMapping struct {
  33. EdbInfoId int `description:"图表id"`
  34. Source int `description:"来源,5:斜率图,6:截距图;7:相关性图;"`
  35. }