// 预警首页
import config from "../config"

export default {
    fetchWarningLayer: {
        url: config.base_url + "cfg/get",
        type: "post",
    },
    fetchAreaDistrict: {
        url: config.base_url + "poi/districtById",
        type: "get",
    },
    transformLocation: {
        url: "/ws/geocoder/v1",
        type: "get"
    },
    // 获取作物种植面积占比
    fetchStatSpeciesAreaYield: {
        url: config.one_map_url + "agri_land_crop/stat_species_area_yield",
        type: "get",
    },
    //统计指定物种在下级区划中的面积占比
    fetchStatRegionAreaRatio: {
        url: config.one_map_url + "agri_land_crop/stat_region_area_ratio",
        type: "get",
    },
    //返回去年的年度+季度，以及今年从第一季度到当前季度的集合
    fetchYearQuarter: {
        url: config.one_map_url + "agri_common/year_quarters",
        type: "get",
    },
    //统计最近三年每种物种每季度的种植面积趋势（按物种分组）
    fetchAreaTrend: {
        url: config.one_map_url + "agri_land_crop/stat_last_three_years",
        type: "post",
    },
    //查询地区作物面积与预估产量
    fetchRegionCropAreaYield: {
        url: config.one_map_url + "agri_region_crop/query_area_yield",
        type: "get",
    },
    //统计指定物种在不同物候期下的面积占比
    fetchStatPhenologyRatio: {
        url: config.one_map_url + "agri_land_crop/stat_phenology_ratio",
        type: "get",
    },
    //统计指定物种在下级区划中的预估产量占比
    fetchStatRegionYieldRatio: {
        url: config.one_map_url + "agri_land_crop/stat_region_yield_ratio",
        type: "get",
    },
    //获取农场列表
    fetchFarmList: {
        url: config.one_map_url + "agri_farm_crop/list",
        type: "post",
    },
    //列表查询农场物候记录
    fetchFarmPhenologyRecord: {
        url: config.one_map_url + "agri_farm_phenology_record/list",
        type: "get",
    },
    //列表查询设备感知记录
    fetchFarmDeviceRecord: {
        url: config.one_map_url + "agri_farm_device_record/list",
        type: "get",
    },
    //按地块类型统计面积及面积占比
    fetchStatLandTypeAreaRatio: {
        url: config.one_map_url + "agri_land_crop/stat_land_type_area_ratio",
        type: "get",
    },
    //根据作物类型ID统计物候期面积及面积占比
    fetchStatPhenologyAreaRatioByCropType: {
        url: config.one_map_url + "agri_land_crop/stat_phenology_area_ratio_by_crop_type",
        type: "get",
    },
    //获取地图图例
    fetchMapLegend: {
        url: config.one_map_url + "agri_common/crop_types",
        type: "get",
    },
    //获取地图图例
    fetchLandTypes: {
        url: config.one_map_url + "agri_common/land_types",
        type: "get",
    },
    //获取土地利用类型图例
    fetchLandUseTypes: {
        url: config.one_map_url + "agri_common/legend_tree",
        type: "get",
    },
    //统计指定类型下的面积占比
    fetchStatAreaRatioByType: {
        url: config.one_map_url + "agri_chart_stat/stat_area_ratio_by_type",
        type: "get",
    },
    //按物候期统计粮食作物的面积及面积占比
    fetchStatPhenologyAreaRatioForGrain: {
        url: config.one_map_url + "agri_chart_stat/stat_phenology_area_ratio_for_grain",
        type: "get",
    },
    //按作物ID查询农事标题和描述
    fetchFarmWorkDesc: {
        url: config.one_map_url + "agri_common/farm_work_desc",
        type: "get",
    },
    //获取村界
    fetchVillageBoundary: {
        url: config.one_map_url + "village/list",
        type: "get",
    },
}

