pheno.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. const config = require("../config")
  2. module.exports = {
  3. // 首页巡园要点查询:一次返回物候 / 异常 / 土壤任务
  4. // 参数:crop_type、farm_id、zone_id、calc_date
  5. getTypesTask: {
  6. url: config.base_new_url + "pheno/interact_tasks_with_abnormal",
  7. type: "get",
  8. },
  9. // 土壤问题互动查询
  10. getSoilTasks: {
  11. url: config.base_new_url + "pheno/soil_root_perception",
  12. type: "get",
  13. },
  14. // 更新分区名称
  15. updateZoneName: {
  16. url: config.base_new_url + "questionnaire/update_zone_name",
  17. type: "post",
  18. },
  19. // 农事已完成
  20. updateTaskFinish: {
  21. url: config.base_new_url + "questionnaire/fw_task_finish",
  22. type: "post",
  23. },
  24. // 农事详情查询
  25. getTaskDetail: {
  26. url: config.base_new_url + "questionnaire/fw_task_detail",
  27. type: "get",
  28. },
  29. // 点位推荐作物
  30. getRecommend: {
  31. url: config.base_new_url + "crop/recommend_by_point",
  32. type: "get",
  33. },
  34. // 删除农场id
  35. deleteFarm: {
  36. url: config.base_new_url + "questionnaire/delete_farm_information",
  37. type: "post",
  38. },
  39. }