mini_farm.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. const config = require("../config")
  2. module.exports = {
  3. list: {
  4. url: config.base_dev_url + "farm/list",
  5. type: "get",
  6. },
  7. weatherRiskVirtualFarmList: {
  8. url: config.base_dev_url + "farm/weatherRiskVirtualFarmList?key="+config.mini_key,
  9. type: "get",
  10. },
  11. getTimeLine: {
  12. url: config.base_dev_url + "fairyland/getNodesByFarmId",
  13. type: "get",
  14. },
  15. getReportData: {
  16. url: config.base_dev_url + "fairyland/predict",
  17. type: "post",
  18. },
  19. getCataclysmTimeLine: {
  20. url: config.base_dev_url + "fairyland/getDisasterNodesByFarmId",
  21. type: "get",
  22. },
  23. getCataclysmReportData: {
  24. url: config.base_dev_url + "fairyland/disasterPredict",
  25. type: "post",
  26. },
  27. getDisasterJudgment: {
  28. url: config.base_dev_url + "fairyland/disasterJudgment",
  29. type: "post",
  30. },
  31. fetchFarmDetail: {
  32. url: config.base_dev_url + "farm/getById",
  33. type: "get",
  34. },
  35. fetchFarmWorkList: {
  36. url: config.base_dev_url + "farm/farm_work_list",
  37. type: "get",
  38. },
  39. fetchFarmImgs: {
  40. url: config.base_dev_url + "image/list",
  41. type: "post",
  42. },
  43. getLiveStart: {
  44. url: config.base_dev_url + "farm/liveStart",
  45. type: "get",
  46. },
  47. gardenItemChart: {
  48. url: config.base_dev_url + "plugin_weather_warning_record/gardenWarningInfoCharts?key="+config.mini_key,
  49. type: "get",
  50. },
  51. fetchFarmDetail: {
  52. url: config.base_dev_url + "farm/getById?key="+config.mini_key,
  53. type: "get",
  54. },
  55. fetchFarmWorkList: {
  56. url: config.base_dev_url + "farm/farm_work_list?key="+config.mini_key,
  57. type: "get",
  58. },
  59. farmImgList: {
  60. url: config.base_dev_url + "image/list?key="+config.mini_key,
  61. type: "post",
  62. },
  63. weather_warning_land_check: {
  64. url: config.base_dev_url + "land_check/weather_warning_land_check?key="+config.mini_key,
  65. type: "post",
  66. }
  67. }