region.js 662 B

123456789101112131415161718192021222324252627
  1. //采样点接口
  2. const config = require("../config")
  3. const DataFetcher = require("../data/DataFetcher");
  4. const dataFetcher = new DataFetcher("https://mock.feiniaotech.com/feiniao-ggp");
  5. module.exports = {
  6. list: {
  7. url: config.base_url + "region/list",
  8. type: "post",
  9. },
  10. listArea: {
  11. url: config.base_url + "temp_blue_region/list",
  12. type: "get",
  13. },
  14. plotList: {
  15. url: config.base_url + "plant_plot/list",
  16. type: "get",
  17. mockCondition: (p)=>{
  18. return false;
  19. },mockFun:function(p){
  20. return dataFetcher.fetchDataKey(`plotList/${p.locationId}`)
  21. }
  22. },
  23. }