import request from '@/utils/request';

// 专家详情
export const getEmergencyExpertDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_emergency_expert',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

// 救援物资详情
export const getRescueMateriaDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_rescue_materia',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};
// 救援物资仓库
export const getWarehouseDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_rescue_materia_warehouse_info',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};
// 救援物资仓库 不合并同点位
export const getWarehouseDetails2 = () => {
  return request({
    url: '/api/gateway/v1/get_rescue_materia_warehouse_list',
    method: 'get'
  });
};

// 避难场所详情
export const getEmergencyShelterTypeDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_emergency_shelter',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

// 易涝点详情
export const getWaterloggedRoadsDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_waterlogged_roads',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

// 学校详情
export const getSchoolDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_school',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

// 医院详情
export const getHospitalDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_hospital',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};
// 加油站详情
export const getGasolinestationDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_gasoline_station',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};
// 非煤矿山企业详情
export const getMiningcompanyDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_mining_company',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

// 危化企业详情
export const getChemicalcompanyDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_chemical_company',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

// 船舶动态详情
export const getShipRealtilmePositionDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_ship_realtilme_positioninfo',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

// 无人机详情
export const getUAVDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_drone_resources_info_id',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

// 雨窝点详情
export const getRainbowDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_rain_pits',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

//旅游场所
export const getTouristAttractionDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_tourist_attraction',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

//在建工地详情
export const getConstructionSitesDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_under_construction_sites',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

//堆场详情
export const getYardSitesDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_yard_sites',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

//客运站详情
export const getStationInfoDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_station_info',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

//重大危险源详情
export const getMajorHazardSourceDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_major_hazard_source',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

//建筑工程详情
export const getBuildingProjectDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_building_project_info',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

//储罐详情
export const getChemicalWarehouseDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_chemical_warehouse',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

//矿山施工详情
export const getMiningOperationsDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_mining_operations',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

//运输物资详情
export const getEmergencyTransportResourcesDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_emergency_transport_resources',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

//灾害信息员详情
export const getEmergencyDisasterInfoOfficerDetails = (id: string) => {
  return request({
    url: '/api/gateway/v2/get_point_info_emergency_disaster_info_officer',
    method: 'post',
    data: {
      query: {
        id: id
      }
    }
  });
};

