From 1206329af0f23c470ffaf444934f497e6bff6dab Mon Sep 17 00:00:00 2001 From: yejin Date: Thu, 29 May 2025 16:59:03 +0900 Subject: [PATCH 1/2] =?UTF-8?q?Feat:=20=EC=83=88=EB=A1=9C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=EB=90=9C=20=EC=9A=B4=EC=98=81=20=EC=8B=9C=EA=B0=84=20?= =?UTF-8?q?=EC=97=86=EB=8A=94=20=EA=B1=B4=EB=AC=BC=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/operatingtime/service/OperatingService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/devkor/com/teamcback/domain/operatingtime/service/OperatingService.java b/src/main/java/devkor/com/teamcback/domain/operatingtime/service/OperatingService.java index 021c4870..06820301 100644 --- a/src/main/java/devkor/com/teamcback/domain/operatingtime/service/OperatingService.java +++ b/src/main/java/devkor/com/teamcback/domain/operatingtime/service/OperatingService.java @@ -41,7 +41,8 @@ public class OperatingService { private static final List alwaysOpenBuildings = List.of(0L, 23L, 27L, 60L); // 출입 권한 필요 혹은 정보가 없는 건물 - private static final List alwaysAccessRequiredOrWithoutInfoBuildings = List.of(1L, 16L, 17L, 19L, 29L, 31L, 35L, 36L, 37L, 38L, 52L, 54L); + private static final List alwaysAccessRequiredOrWithoutInfoBuildings = List.of(1L, 16L, 17L, 19L, 29L, 31L, 35L, 36L, 37L, 38L, 52L, 54L, + 62L, 63L, 64L, 65L, 66L, 67L, 68L, 69L, 70L, 71L, 72L); private static final String DEFAULT_OPERATING_TIME = "00:00-23:59"; /** From c1521faa03241a3e8cf285c8db9bdabee72b660f Mon Sep 17 00:00:00 2001 From: yejin Date: Mon, 2 Jun 2025 12:28:38 +0900 Subject: [PATCH 2/2] =?UTF-8?q?Fix:=20=EA=B2=80=EC=83=89=20=EC=8B=9C=20?= =?UTF-8?q?=EC=A6=90=EA=B2=A8=EC=B0=BE=EA=B8=B0=20=EC=97=AC=EB=B6=80=20?= =?UTF-8?q?=EB=B0=98=ED=99=98=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/search/contoller/SearchController.java | 4 ++-- .../com/teamcback/global/jwt/JwtAuthorizationFilter.java | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/devkor/com/teamcback/domain/search/contoller/SearchController.java b/src/main/java/devkor/com/teamcback/domain/search/contoller/SearchController.java index 7f8b3ab2..7c86430d 100644 --- a/src/main/java/devkor/com/teamcback/domain/search/contoller/SearchController.java +++ b/src/main/java/devkor/com/teamcback/domain/search/contoller/SearchController.java @@ -188,7 +188,7 @@ public CommonResponse searchMaskIndexByPlace( }) @GetMapping("/buildings/{buildingId}") public CommonResponse searchBuildingDetail( - @Parameter(description = "사용자정보", required = false) + @Parameter(description = "사용자정보") @AuthenticationPrincipal UserDetailsImpl userDetail, @Parameter(name = "buildingId", description = "건물 id", example = "1", required = true) @PathVariable Long buildingId) { @@ -209,7 +209,7 @@ public CommonResponse searchBuildingDetail( }) @GetMapping("/place/{placeId}") public CommonResponse searchPlaceDetail( - @Parameter(description = "사용자정보", required = false) + @Parameter(description = "사용자정보") @AuthenticationPrincipal UserDetailsImpl userDetail, @Parameter(name = "placeId", description = "placeId", example = "1", required = true) @PathVariable Long placeId) { diff --git a/src/main/java/devkor/com/teamcback/global/jwt/JwtAuthorizationFilter.java b/src/main/java/devkor/com/teamcback/global/jwt/JwtAuthorizationFilter.java index e8b35638..c85697cc 100644 --- a/src/main/java/devkor/com/teamcback/global/jwt/JwtAuthorizationFilter.java +++ b/src/main/java/devkor/com/teamcback/global/jwt/JwtAuthorizationFilter.java @@ -34,7 +34,12 @@ public class JwtAuthorizationFilter extends OncePerRequestFilter { new AntPathRequestMatcher("/api/migration"), new AntPathRequestMatcher("/api/koyeon/**"), new AntPathRequestMatcher("/api/routes/**"), - new AntPathRequestMatcher("/api/search/**", HttpMethod.GET.name()), + new AntPathRequestMatcher("/api/search", HttpMethod.GET.name()), + new AntPathRequestMatcher("/api/search/buildings", HttpMethod.GET.name()), + new AntPathRequestMatcher("/api/search/buildings/**/facilities/**", HttpMethod.GET.name()), + new AntPathRequestMatcher("/api/search/buildings/**/floor/**", HttpMethod.GET.name()), + new AntPathRequestMatcher("/api/search/facilities", HttpMethod.GET.name()), + new AntPathRequestMatcher("/api/search/place/**/mask", HttpMethod.GET.name()), new AntPathRequestMatcher("/api/users/login/**")); private final JwtUtil jwtUtil;