balance_table.go 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package request
  2. import "eta_gn/eta_api/models/data_manage"
  3. type AddBalanceTableChartEdbItem struct {
  4. DateSequenceStr string `description:"日期序列"`
  5. DataSequenceStr string `description:"数据序列"`
  6. EdbName string `description:"指标名称"`
  7. Unit string `description:"指标单位"`
  8. MaxData float64 `description:"上限"`
  9. MinData float64 `description:"下限"`
  10. IsOrder bool `description:"true:正序,false:逆序"`
  11. IsAxis int `description:"true:左轴,false:右轴"`
  12. EdbInfoType int `description:"true:标准指标,false:领先指标"`
  13. LeadValue int `description:"领先值"`
  14. LeadUnit string `description:"领先单位"`
  15. FromTag string `description:"标签"`
  16. ExcelChartEdbId int
  17. }
  18. type AddBalanceTableChartReq struct {
  19. ExcelInfoId int `description:"表格ID"`
  20. ChartInfoId int `description:"图表id,新增时传0"`
  21. ChartName string `description:"图表名称"`
  22. ChartType int `description:"生成样式:1:曲线图,2:季节性图,3:面积图,4:柱状图,5:散点图,6:组合图,7:柱方图"`
  23. Calendar string `description:"公历/农历"`
  24. LeftMin string `description:"图表左侧最小值"`
  25. LeftMax string `description:"图表左侧最大值"`
  26. RightMin string `description:"图表右侧最小值"`
  27. RightMax string `description:"图表右侧最大值"`
  28. Right2Min string `description:"图表右侧2最小值"`
  29. Right2Max string `description:"图表右侧2最大值"`
  30. MinMaxSave int `description:"是否手动保存过上下限:0-否;1-是"`
  31. ExtraConfig string `description:"图表额外配置信息,json字符串"`
  32. ChartImage string `description:"封面图" json:"-"`
  33. SeasonExtraConfig data_manage.SeasonExtraItem `description:"季节性图表中的配置,json数据"`
  34. SourcesFrom string `description:"图表来源"`
  35. ChartEdbInfoList []AddBalanceTableChartEdbItem
  36. }
  37. type BalanceSeasonChartLegendPreviewReq struct {
  38. Calendar string `description:"公历/农历"`
  39. SeasonExtraConfig data_manage.SeasonExtraItem `description:"季节性图表中的配置,json数据"`
  40. DataArr []string
  41. DateArr []string
  42. }
  43. // AddBalanceStaticExcelInfoReq 添加平衡表静态表
  44. type AddBalanceStaticExcelInfoReq struct {
  45. ExcelInfoId int `description:"ETA表格ID"`
  46. VersionName string `description:"静态表版本名称"`
  47. }