predit_edb_info.go 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package response
  2. import (
  3. "github.com/rdlucklib/rdluck_tools/paging"
  4. "hongze/hz_crm_api/models/data_manage"
  5. )
  6. // AddEdbInfoResp 添加指标返回
  7. type AddEdbInfoResp struct {
  8. EdbInfoId int `description:"指标ID"`
  9. UniqueCode string `description:"指标唯一编码"`
  10. }
  11. // PredictEdbInfoListResp 预测指标列表返回数据
  12. type PredictEdbInfoListResp struct {
  13. Paging *paging.PagingItem
  14. List []*data_manage.EdbInfoList
  15. }
  16. // PredictEdbInfoDataResp 预测指标数据返回
  17. type PredictEdbInfoDataResp struct {
  18. EdbInfo *data_manage.EdbInfo
  19. Button data_manage.EdbClassifyItemsButton
  20. DataList interface{}
  21. }
  22. // PredictEdbInfo 预测指标详情
  23. type PredictEdbInfo struct {
  24. data_manage.EdbInfo
  25. RuleType int `description:"预测规则,1:最新,2:固定值,3:同比,4:同差,5:环比,6:环差,7:N期移动均值,8:N期段线性外推值"`
  26. FixedValue float64 `description:"固定值"`
  27. CalculateList []*data_manage.EdbInfoCalculateDetail `description:"关联指标"`
  28. RuleList []data_manage.PredictEdbConfDetail `description:"指标规则配置"`
  29. }
  30. // PredictEdbInfoChartDataResp 获取预测指标绘图数据返回
  31. type PredictEdbInfoChartDataResp struct {
  32. MinValue float64
  33. MaxValue float64
  34. DataList interface{}
  35. }
  36. // PredictRuleCalculateByNineResp 获取预测指标规则9的绘图数据返回
  37. type PredictRuleCalculateByNineResp struct {
  38. LatestDate string
  39. DataList interface{}
  40. }