Procházet zdrojové kódy

修改获取机场添加API

tags/v1.0.2
wanjing před 1 rokem
rodič
revize
077e0b48fb
2 změnil soubory, kde provedl 8 přidání a 1 odebrání
  1. +6
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/constant/SystemConstant.java
  2. +2
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/GetAirportDetailService.java

+ 6
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/constant/SystemConstant.java Zobrazit soubor

@@ -84,4 +84,10 @@ public interface SystemConstant {
*/
String API_AIRPORT_DRONE_LINE = "/airportInterface/createDroneLine";


/**
* 机场平台:获取机场天气详情
*/
String API_AIRPORT_STATUS = "/airportInterface/getAirportStatus";
}

+ 2
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/GetAirportDetailService.java Zobrazit soubor

@@ -2,6 +2,7 @@ package com.tuoheng.admin.service.third.airport;

import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson.JSONObject;
import com.tuoheng.admin.constant.SystemConstant;
import com.tuoheng.admin.entity.dto.AirportDetailDto;
import com.tuoheng.admin.entity.dto.MountEquipment;
import com.tuoheng.common.core.config.common.CommonConfig;
@@ -25,7 +26,7 @@ import java.util.Objects;
public class GetAirportDetailService {

public JsonResult getAirportDetail(Integer airportId) {
String url = CommonConfig.airportURL + "/api/airportInterface/getAirportStatus";
String url = CommonConfig.airportURL + SystemConstant.API_AIRPORT_STATUS;
String param = "airportId=" + airportId;
String result = HttpUtils.sendGet(url, param);
JsonResult jsonResult = JacksonUtil.json2pojo(result, JsonResult.class);

Načítá se…
Zrušit
Uložit