From 81daa6a9c65d8f491cc05f925a87cb24bf212a6a Mon Sep 17 00:00:00 2001 From: Anna-Jin Date: Mon, 25 Jul 2022 15:58:32 +0900 Subject: [PATCH] =?UTF-8?q?#39=20[Update]=20=EC=97=85=EC=9E=A5=20=EA=B2=80?= =?UTF-8?q?=EC=83=89=20=EA=B8=B0=EB=8A=A5=20=EA=B5=AC=ED=98=84=20=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mpnp/baechelin/store/controller/StoreController.java | 9 ++++++++- .../com/mpnp/baechelin/store/service/StoreService.java | 8 +++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/mpnp/baechelin/store/controller/StoreController.java b/src/main/java/com/mpnp/baechelin/store/controller/StoreController.java index 4b830d5..553a953 100644 --- a/src/main/java/com/mpnp/baechelin/store/controller/StoreController.java +++ b/src/main/java/com/mpnp/baechelin/store/controller/StoreController.java @@ -77,7 +77,6 @@ public StoreCardResponseDto getStore( HttpServletRequest request, @AuthenticationPrincipal User user) { - // TODO 토큰 유효성 검사하기 AuthToken authToken = tokenProvider.convertAccessToken(request); if (!authToken.tokenValidate()) { throw new CustomException(ErrorCode.INVALID_ACCESS_TOKEN); @@ -96,4 +95,12 @@ public StoreCardResponseDto getStore( public Map> getSigungu(@RequestParam(required = false) String sido) { return storeService.getSigungu(sido); } + + @GetMapping("/search") + public List searchStoresByKeyword( + @RequestParam String sido, + @RequestParam String sigungu, + @RequestParam String keyword) { + return null; + } } \ No newline at end of file diff --git a/src/main/java/com/mpnp/baechelin/store/service/StoreService.java b/src/main/java/com/mpnp/baechelin/store/service/StoreService.java index 3ef399b..ec9cd62 100644 --- a/src/main/java/com/mpnp/baechelin/store/service/StoreService.java +++ b/src/main/java/com/mpnp/baechelin/store/service/StoreService.java @@ -3,7 +3,6 @@ import com.mpnp.baechelin.bookmark.domain.Bookmark; import com.mpnp.baechelin.bookmark.repository.BookmarkRepository; import com.mpnp.baechelin.common.QuerydslLocation; -import com.mpnp.baechelin.review.repository.ReviewRepository; import com.mpnp.baechelin.store.domain.Store; import com.mpnp.baechelin.store.dto.StoreCardResponseDto; import com.mpnp.baechelin.store.dto.StorePagedResponseDto; @@ -30,7 +29,6 @@ public class StoreService { private final StoreRepository storeRepository; - private final ReviewRepository reviewRepository; private final StoreQueryRepository storeQueryRepository; private final UserRepository userRepository; private final BookmarkRepository bookmarkRepository; @@ -181,7 +179,7 @@ public StoreCardResponseDto getStore(int storeId, String socialId) { } /** - * 시/도 (ex. 서울시, 대전광역시)의 시/군/구 리스트를 반환하는 메소드 + * 시/도 (ex. 서울시, 대전광역시)의 시/군/구 리스트 조회 * @param sido 시/도 * @return 시/군/구 리스트 */ @@ -204,4 +202,8 @@ public Map> getSigungu(String sido) { return result; } + + public List searchStoresByKeyword(String sido, String sigungu, String keyword) { + return null; + } } \ No newline at end of file