From 22059b0427c256e8a2bbb652e068398b88b982ed Mon Sep 17 00:00:00 2001 From: lkd9125 Date: Fri, 22 Sep 2023 16:55:12 +0900 Subject: [PATCH] =?UTF-8?q?Swagger=20=EC=96=B4=EB=85=B8=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dash/controller/MainDashController.java | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) 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 c6a8500e..2084b054 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;