Skip to content

Commit 102b9e2

Browse files
committed
feature(search): 위치 기반 검색 추가 및 키워드 condition에 추가
1 parent ffd2769 commit 102b9e2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/main/java/com/somemore/recruitboard/controller/RecruitBoardQueryApiController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public ApiResponse<Page<RecruitBoardWithCenterResponseDto>> getAllBySearch(
8585

8686
return ApiResponse.ok(
8787
200,
88-
recruitBoardDocumentUseCase.getRecruitBoardBySearch(keyword, condition),
88+
recruitBoardDocumentUseCase.getRecruitBoardBySearch(condition),
8989
"봉사 활동 모집글 검색 조회 성공"
9090
);
9191
}

src/main/java/com/somemore/recruitboard/repository/RecruitBoardRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public interface RecruitBoardRepository {
3131

3232
List<RecruitBoard> findAllByIds(List<Long> ids);
3333

34-
Page<RecruitBoardWithCenter> findByRecruitBoardsContaining(String keyword, RecruitBoardSearchCondition condition);
34+
Page<RecruitBoardWithCenter> findByRecruitBoardsContaining(RecruitBoardSearchCondition condition);
3535
void saveDocuments(List<RecruitBoard> recruitBoards);
3636
List<RecruitBoard> findAll();
3737
void deleteDocument(Long id);

src/main/java/com/somemore/recruitboard/service/query/RecruitBoardDocumentService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public class RecruitBoardDocumentService implements RecruitBoardDocumentUseCase
2121

2222
@Transactional(readOnly = true)
2323
@Override
24-
public Page<RecruitBoardWithCenterResponseDto> getRecruitBoardBySearch(String keyword, RecruitBoardSearchCondition condition) {
25-
Page<RecruitBoardWithCenter> boards = recruitBoardRepository.findByRecruitBoardsContaining(keyword, condition);
24+
public Page<RecruitBoardWithCenterResponseDto> getRecruitBoardBySearch(RecruitBoardSearchCondition condition) {
25+
Page<RecruitBoardWithCenter> boards = recruitBoardRepository.findByRecruitBoardsContaining(condition);
2626
return boards.map(RecruitBoardWithCenterResponseDto::from);
2727
}
2828

src/main/java/com/somemore/recruitboard/usecase/query/RecruitBoardDocumentUseCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
import java.util.List;
99

1010
public interface RecruitBoardDocumentUseCase {
11-
Page<RecruitBoardWithCenterResponseDto> getRecruitBoardBySearch(String keyword, RecruitBoardSearchCondition condition);
11+
Page<RecruitBoardWithCenterResponseDto> getRecruitBoardBySearch(RecruitBoardSearchCondition condition);
1212
void saveRecruitBoardDocuments(List<RecruitBoard> recruitBoards);
1313
}

0 commit comments

Comments
 (0)