mini_farm.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. fetchFarmImgs: {
  36. url: config.base_dev_url + "image/list",
  37. type: "post",
  38. },
  39. getLiveStart: {
  40. url: config.base_dev_url + "farm/liveStart",
  41. type: "get",
  42. },
  43. gardenItemChart: {
  44. url: config.base_dev_url + "plugin_weather_warning_record/gardenWarningInfoCharts?key="+config.mini_key,
  45. type: "get",
  46. },
  47. fetchFarmDetail: {
  48. url: config.base_dev_url + "farm/getById?key="+config.mini_key,
  49. type: "get",
  50. },
  51. fetchFarmWorkList: {
  52. url: config.base_url +"farm_work/list",
  53. type: "get",
  54. },
  55. farmImgList: {
  56. url: config.base_dev_url + "image/list?key="+config.mini_key,
  57. type: "post",
  58. },
  59. weather_warning_land_check: {
  60. url: config.base_dev_url + "land_check/weather_warning_land_check?key="+config.mini_key,
  61. type: "post",
  62. },
  63. getSampleFiles: {
  64. url: config.base_dev_url + "image/getSampleFiles?key="+config.mini_key,
  65. type: "get",
  66. },
  67. }