predict_edb_info_calculate.go 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package data_manage
  2. // PredictEdbInfoCalculateSaveReq 预测指标运算请求
  3. type PredictEdbInfoCalculateSaveReq struct {
  4. AdminId int `description:"添加人id"`
  5. AdminName string `description:"添加人名称"`
  6. EdbInfoId int `description:"指标id"`
  7. EdbName string `description:"指标名称"`
  8. Frequency string `description:"频率"`
  9. Unit string `description:"单位"`
  10. ClassifyId int `description:"分类id"`
  11. CalculateFormula string `description:"计算公式"`
  12. EdbInfoIdArr []EdbInfoFromTag `description:"指标信息"`
  13. }
  14. // PredictEdbInfoCalculateBatchSaveReq 预测指标比对请求(同比、同差等)
  15. type PredictEdbInfoCalculateBatchSaveReq struct {
  16. AdminId int `description:"添加人id"`
  17. AdminName string `description:"添加人名称"`
  18. EdbInfoId int `description:"指标id"`
  19. EdbName string `description:"指标名称"`
  20. Frequency string `description:"频度"`
  21. Unit string `description:"单位"`
  22. ClassifyId int `description:"分类id"`
  23. Formula string `description:"N值/移动天数"`
  24. FromEdbInfoId int `description:"计算来源指标id"`
  25. Source int `description:"来源:32:同比,33:同差,39:数值移动平均计算,42:累计值转月,43:环比值,44:环差值,45:变频,46:时间移位,47:直接拼接,48累计值同比拼接,49:超季节性,50 拟合残差"`
  26. CalculateFormula string `description:"计算公式"`
  27. EdbInfoIdArr []struct {
  28. EdbInfoId int `description:"指标id"`
  29. FromTag string `description:"指标对应标签"`
  30. MoveValue int `description:"移动的值"`
  31. }
  32. MoveType int `description:"移动方式:1:领先(默认),2:滞后"`
  33. MoveFrequency string `description:"移动频度:天/周/月/季/年"`
  34. Calendar string `description:"公历/农历"`
  35. }
  36. // BatchPredictEdbInfoCalculateBatchSaveReq 批量添加 计算指标
  37. type BatchPredictEdbInfoCalculateBatchSaveReq struct {
  38. CalculateId string `description:"当前请求时,单个计算的唯一标识"`
  39. CalculateInfo PredictEdbInfoCalculateBatchSaveReq
  40. }