diff --git a/pav-server/src/main/java/com/palnet/biz/api/main/dash/controller/MainDashController.java b/pav-server/src/main/java/com/palnet/biz/api/main/dash/controller/MainDashController.java index c6a8500..2084b05 100644 --- a/pav-server/src/main/java/com/palnet/biz/api/main/dash/controller/MainDashController.java +++ b/pav-server/src/main/java/com/palnet/biz/api/main/dash/controller/MainDashController.java @@ -4,6 +4,7 @@ import java.util.List; import java.util.Map; import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; @@ -164,7 +165,10 @@ public class MainDashController { @GetMapping(value = "/stcs/flight/date/{type}") @ApiOperation(value = "김포공항, 비행실적 통계") @Tag(name = "메인화면 컨트롤러", description = "메인화면 관련 API") - @ApiImplicitParam(name = "date",value = "날짜", dataTypeClass = String.class) + @ApiImplicitParams({ + @ApiImplicitParam(name = "date",value = "날짜", dataTypeClass = String.class), + @ApiImplicitParam(name = "type",value = "날짜형식", dataTypeClass = String.class) + }) public ResponseEntity flightStatistics(String date, @PathVariable String type){ String[] formatParam = null; @@ -194,7 +198,10 @@ public class MainDashController { @GetMapping("/stcs/plan-allow/date/{type}") @ApiOperation(value = "김포공항, 비행승인 통계") @Tag(name = "메인화면 컨트롤러", description = "메인화면 관련 API") - @ApiImplicitParam(name = "date",value = "날짜", dataTypeClass = String.class) + @ApiImplicitParams({ + @ApiImplicitParam(name = "date",value = "날짜", dataTypeClass = String.class), + @ApiImplicitParam(name = "type",value = "날짜형식", dataTypeClass = String.class) + }) public ResponseEntity planAllowStatistics(String date ,@PathVariable String type){ String[] formatParam = null; @@ -224,7 +231,11 @@ public class MainDashController { @GetMapping("/stcs/drone-flight/date/{type}") @ApiOperation(value = "김포공항, 드론별 비행 통계") @Tag(name = "메인화면 컨트롤러", description = "메인화면 관련 API") - @ApiImplicitParam(name = "date",value = "날짜", dataTypeClass = String.class) + @ApiImplicitParams({ + @ApiImplicitParam(name = "date",value = "날짜", dataTypeClass = String.class), + @ApiImplicitParam(name = "type",value = "날짜형식", dataTypeClass = String.class), + @ApiImplicitParam(name = "idntfNum",value = "드론식별번호", dataTypeClass = String.class), + }) public ResponseEntity droneFlightStatistics(String date, @RequestParam(required = true) String idntfNum, @PathVariable String type){ log.info("idntfNum -> {}", idntfNum); @@ -255,7 +266,10 @@ public class MainDashController { @GetMapping("/stcs/warning-flight/date/{type}") @ApiOperation(value = "김포공항, 비정상상황 비행 통계") @Tag(name = "메인화면 컨트롤러", description = "메인화면 관련 API") - @ApiImplicitParam(name = "date",value = "날짜", dataTypeClass = String.class) + @ApiImplicitParams({ + @ApiImplicitParam(name = "date",value = "날짜", dataTypeClass = String.class), + @ApiImplicitParam(name = "type",value = "날짜형식", dataTypeClass = String.class) + }) public ResponseEntity warningFlightStatistics(String date, @PathVariable String type){ String[] formatParam = null;