predit_edb_info.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package response
  2. import (
  3. "eta/eta_api/models/data_manage"
  4. "github.com/rdlucklib/rdluck_tools/paging"
  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 *EdbInfoFull
  19. Button data_manage.EdbClassifyItemsButton
  20. DataList interface{}
  21. ClassifyList []*data_manage.EdbClassifyIdItems `description:"父级分类列表"`
  22. }
  23. type EdbInfoFull struct {
  24. *data_manage.EdbInfo
  25. HaveOperaAuth bool `description:"是否有数据权限,默认:false"`
  26. }
  27. // PredictEdbInfo 预测指标详情
  28. type PredictEdbInfo struct {
  29. *EdbInfoFull
  30. RuleType int `description:"预测规则,1:最新,2:固定值,3:同比,4:同差,5:环比,6:环差,7:N期移动均值,8:N期段线性外推值"`
  31. FixedValue float64 `description:"固定值"`
  32. CalculateList []*data_manage.EdbInfoCalculateDetail `description:"关联指标"`
  33. RuleList []data_manage.PredictEdbConfDetail `description:"指标规则配置"`
  34. CorrelationStr string `description:"相关性系数字符串"`
  35. ClassifyList []*data_manage.EdbClassifyIdItems `description:"父级分类列表"`
  36. }
  37. // PredictEdbInfoChartDataResp 获取预测指标绘图数据返回
  38. type PredictEdbInfoChartDataResp struct {
  39. MinValue float64
  40. MaxValue float64
  41. DataList interface{}
  42. }
  43. // PredictRuleCalculateByNineResp 获取预测指标规则9的绘图数据返回
  44. type PredictRuleCalculateByNineResp struct {
  45. LatestDate string
  46. DataList []*data_manage.EdbDataList
  47. }