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