farm.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. const config = require("../config")
  2. module.exports = {
  3. fetchSpecieList: {
  4. url: config.base_dev_url + "container/specieList",
  5. type: "get",
  6. },
  7. saveFarm: {
  8. url: config.base_dev_url + "v2/farm/createFarm",
  9. type: "post",
  10. },
  11. userFarmSelectOption: {
  12. url: config.base_dev_url + "v2/farm/userFarmSelectOption",
  13. type: "get",
  14. },
  15. listByUserId: {
  16. url: config.base_dev_url + "farm_subject/listByUserId",
  17. type: "get",
  18. },
  19. fruitsTypeItemList: {
  20. url: config.base_dev_url + "mini_fruits_type_item/list/{parentId}",
  21. type: "get",
  22. },
  23. getFarmDetail: {
  24. url: config.base_dev_url + "v2/farm/getFarmDetail",
  25. type: "get",
  26. },
  27. getFarmWorkLib: {
  28. url: config.base_dev_url + "z_farm_work_lib/get",
  29. type: "get",
  30. },
  31. //查询单个农事编排信息
  32. getFarmWorkArrangeDetail: {
  33. url: config.base_dev_url + "container_farm_work_arrange/get",
  34. type: "get",
  35. },
  36. // 生育期
  37. listByPhenologyId: {
  38. url: config.base_dev_url + "container_reproductive/listByPhenologyId",
  39. type: "get",
  40. },
  41. // 基地类别列表
  42. fetchBaseTypeList: {
  43. url: config.base_dev_url + "v2/farm/farmBaseTypeOptions",
  44. type: "get",
  45. },
  46. //获取作物品类列表
  47. findCategoryList: {
  48. url: config.base_new_url + "find_categoly",
  49. type: "get",
  50. },
  51. //新建农场
  52. createFarm: {
  53. url: config.base_new_url + "farm_information_create",
  54. type: "post",
  55. },
  56. //获取农场列表
  57. getFarmList: {
  58. url: config.base_new_url + "find_farm_information",
  59. type: "get",
  60. },
  61. }