predit_edb_info.go 1.9 KB

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