Skip to content

Commit

Permalink
#39 [Update] 업장 검색 기능 구현 중
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna-Jin committed Jul 25, 2022
1 parent 1fe353a commit 81daa6a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -96,4 +95,12 @@ public StoreCardResponseDto getStore(
public Map<String, List<String>> getSigungu(@RequestParam(required = false) String sido) {
return storeService.getSigungu(sido);
}

@GetMapping("/search")
public List<StoreCardResponseDto> searchStoresByKeyword(
@RequestParam String sido,
@RequestParam String sigungu,
@RequestParam String keyword) {
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -181,7 +179,7 @@ public StoreCardResponseDto getStore(int storeId, String socialId) {
}

/**
* 시/도 (ex. 서울시, 대전광역시)의 시/군/구 리스트를 반환하는 메소드
* 시/도 (ex. 서울시, 대전광역시)의 시/군/구 리스트 조회
* @param sido 시/도
* @return 시/군/구 리스트
*/
Expand All @@ -204,4 +202,8 @@ public Map<String, List<String>> getSigungu(String sido) {

return result;
}

public List<StoreCardResponseDto> searchStoresByKeyword(String sido, String sigungu, String keyword) {
return null;
}
}

0 comments on commit 81daa6a

Please sign in to comment.