/** | /** | ||||
* 机场平台:获取机场列表接口 | * 机场平台:获取机场列表接口 | ||||
*/ | */ | ||||
String API_AIRPORT_LIST = "/api/airportInterface/airportList"; | |||||
String API_AIRPORT_LIST = "/airportInterface/airportList"; | |||||
/** | /** | ||||
* 机场平台:获取机场路线列表接口 | * 机场平台:获取机场路线列表接口 | ||||
*/ | */ | ||||
String API_AIRPORT_LINE_LIST = "/api/airportInterface/taskByDroneId"; | |||||
String API_AIRPORT_LINE_LIST = "/airportInterface/taskByDroneId"; | |||||
/** | /** | ||||
* 机场平台:执行接口 | * 机场平台:执行接口 | ||||
*/ | */ | ||||
String API_AIRPORT_EXECUTE_TASK = "/api/airportInterface/executeTaskAnsy"; | |||||
String API_AIRPORT_EXECUTE_TASK = "/airportInterface/executeTaskAnsy"; | |||||
/** | /** | ||||
* 机场平台:定点飞行 | * 机场平台:定点飞行 | ||||
*/ | */ | ||||
String API_AIRPORT_POINT_FLIGH = "/api/airportInterface/createPointLine"; | |||||
String API_AIRPORT_POINT_FLIGH = "/airportInterface/createPointLine"; | |||||
/** | /** | ||||
* 机场平台:获取天气 | * 机场平台:获取天气 | ||||
*/ | */ | ||||
String API_AIRPORT_GET_WEATHER = "/api/airportInterface/getWeather"; | |||||
String API_AIRPORT_GET_WEATHER = "/airportInterface/getWeather"; | |||||
/** | /** | ||||
* 机场平台:控制无人机 | * 机场平台:控制无人机 | ||||
*/ | */ | ||||
String API_AIRPORT_DRONE_CONTROL = "/api/airportInterface/droneCommand"; | |||||
String API_AIRPORT_DRONE_CONTROL = "/airportInterface/droneCommand"; | |||||
/** | /** | ||||
* 机场平台:获取机场状态 | * 机场平台:获取机场状态 | ||||
*/ | */ | ||||
String API_AIRPORT_STATUS_BY_AIRPORT_ID = "/api/airportInterface/getAirportStatusByAirportId"; | |||||
String API_AIRPORT_STATUS = "/airportInterface/getAirportStatus"; | |||||
/** | |||||
* 机场平台:获取机场状态 | |||||
*/ | |||||
String API_AIRPORT_STATUS_BY_AIRPORT_ID = "/airportInterface/getAirportStatusByAirportId"; | |||||
// 飞手平台不同接口url | // 飞手平台不同接口url | ||||
/** | /** |
import com.alibaba.fastjson.JSON; | import com.alibaba.fastjson.JSON; | ||||
import com.alibaba.fastjson.JSONObject; | import com.alibaba.fastjson.JSONObject; | ||||
import com.google.gson.JsonObject; | import com.google.gson.JsonObject; | ||||
import com.tuoheng.admin.constant.SystemConstant; | |||||
import com.tuoheng.admin.vo.AirportMsgVo; | import com.tuoheng.admin.vo.AirportMsgVo; | ||||
import com.tuoheng.common.core.config.common.CommonConfig; | import com.tuoheng.common.core.config.common.CommonConfig; | ||||
import com.tuoheng.common.core.utils.HttpUtils; | import com.tuoheng.common.core.utils.HttpUtils; | ||||
@Override | @Override | ||||
public JsonResult getAirportMsg(Integer airportId) { | public JsonResult getAirportMsg(Integer airportId) { | ||||
String url = CommonConfig.airportURL + "/api/airportInterface/getAirportStatus"; | |||||
String url = CommonConfig.airportURL + SystemConstant.API_AIRPORT_STATUS; | |||||
String param = "airportId=" + airportId; | String param = "airportId=" + airportId; | ||||
String result = HttpUtils.sendGet(url, param); | String result = HttpUtils.sendGet(url, param); | ||||
JsonResult jsonResult = JacksonUtil.json2pojo(result, JsonResult.class); | JsonResult jsonResult = JacksonUtil.json2pojo(result, JsonResult.class); |
#飞手平台地址 | #飞手平台地址 | ||||
pilot-url: https://pilot.t-aaron.com/pilot/web/ | pilot-url: https://pilot.t-aaron.com/pilot/web/ | ||||
#airport配置地址 | #airport配置地址 | ||||
airport-url: https://airport.t-aaron.com/api | |||||
airport-url: https://airport.t-aaron.com/airport/admin | |||||
# 文件配置 | # 文件配置 | ||||
uploads: | uploads: | ||||
#上传的服务器上的映射文件夹 | #上传的服务器上的映射文件夹 |
@Service | @Service | ||||
public class AirportServiceImpl implements AirportService { | public class AirportServiceImpl implements AirportService { | ||||
private final static String API_AIRPORT_LIST = "/api/airportInterface/airportList"; | |||||
private final static String API_AIRPORT_LINE_LIST = "/api/airportInterface/taskByDroneId"; | |||||
private final static String API_AIRPORT_LIST = "/airportInterface/airportList"; | |||||
private final static String API_AIRPORT_LINE_LIST = "/airportInterface/taskByDroneId"; | |||||
@Autowired | @Autowired | ||||
private TenantMapper tenantMapper; | private TenantMapper tenantMapper; |
#飞手平台地址 | #飞手平台地址 | ||||
pilot-url: http://192.168.11.11:7011/pilot/web/ | pilot-url: http://192.168.11.11:7011/pilot/web/ | ||||
#airport配置地址 | #airport配置地址 | ||||
airport-url: https://airport.t-aaron.com | |||||
airport-url: https://airport.t-aaron.com/airport/admin | |||||
# 文件配置 | # 文件配置 | ||||
uploads: | uploads: | ||||
#上传的服务器上的映射文件夹 | #上传的服务器上的映射文件夹 |
#飞手平台地址 | #飞手平台地址 | ||||
pilot-url: http://192.168.11.11:7011/pilot/web/ | pilot-url: http://192.168.11.11:7011/pilot/web/ | ||||
#airport配置地址 | #airport配置地址 | ||||
airport-url: https://airport-test.t-aaron.com | |||||
airport-url: https://airport-test.t-aaron.com/airport/admin | |||||
# 文件配置 | # 文件配置 | ||||
uploads: | uploads: | ||||
#上传的服务器上的映射文件夹 | #上传的服务器上的映射文件夹 |