-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 봉사 모집글 검색(봉사자) 로직의 페이지네이션을 커서 기반으로 개선한다. (#293)
* feat: 봉사 모집글 조회(봉사자) 로직을 no offset으로 구현한다. Co-Authored-By: hseong3243 <48748265+hseong3243@users.noreply.github.com> Co-Authored-By: Seonheui Jeon <88873302+funnysunny08@users.noreply.github.com> Co-Authored-By: minjungkim <97938489+pushedrumex@users.noreply.github.com> * test: 봉사 모집글 조회(봉사자) no offset 로직을 테스트한다. Co-Authored-By: hseong3243 <48748265+hseong3243@users.noreply.github.com> Co-Authored-By: Seonheui Jeon <88873302+funnysunny08@users.noreply.github.com> Co-Authored-By: minjungkim <97938489+pushedrumex@users.noreply.github.com> Co-Authored-By: hseong3243 <48748265+hseong3243@users.noreply.github.com> Co-Authored-By: Seonheui Jeon <88873302+funnysunny08@users.noreply.github.com> Co-Authored-By: minjungkim <97938489+pushedrumex@users.noreply.github.com> * fix: feat/#267 브랜치에 cd-dev를 적용하지 않는다. * feat: count가 null인 경우 0으로 변경한다. * test: 봉사 모집글 조회(봉사자) no offset 서비스 로직을 테스트한다. * test: 봉사 모집글 조회(봉사자) no offset 컨트롤러 테스트 코드를 작성한다. * fix: 봉사 모집글 조회(봉사자) 테스트 코드에서 봉사자 액세스 토큰을 제거한다. * test: countFindRecruitmentsV2 레포지토리 테스트 코드를 작성한다. --------- Co-authored-by: hseong3243 <48748265+hseong3243@users.noreply.github.com> Co-authored-by: Seonheui Jeon <88873302+funnysunny08@users.noreply.github.com> Co-authored-by: minjungkim <97938489+pushedrumex@users.noreply.github.com>
1 parent
465066f
commit 21d2659
Showing
9 changed files
with
370 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...n/java/com/clova/anifriends/domain/recruitment/dto/request/FindRecruitmentsRequestV2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.clova.anifriends.domain.recruitment.dto.request; | ||
|
||
import com.clova.anifriends.domain.recruitment.controller.KeywordFilter; | ||
import com.clova.anifriends.domain.recruitment.controller.RecruitmentStatusFilter; | ||
import java.time.LocalDate; | ||
import java.time.LocalDateTime; | ||
|
||
public record FindRecruitmentsRequestV2( | ||
String keyword, | ||
LocalDate startDate, | ||
LocalDate endDate, | ||
RecruitmentStatusFilter closedFilter, | ||
KeywordFilter keywordFilter, | ||
Long recruitmentId, | ||
LocalDateTime createdAt | ||
) { | ||
|
||
public FindRecruitmentsRequestV2( | ||
String keyword, | ||
LocalDate startDate, | ||
LocalDate endDate, | ||
RecruitmentStatusFilter closedFilter, | ||
KeywordFilter keywordFilter, | ||
Long recruitmentId, | ||
LocalDateTime createdAt | ||
) { | ||
this.keyword = keyword; | ||
this.startDate = startDate; | ||
this.endDate = endDate; | ||
this.closedFilter = closedFilter == null ? RecruitmentStatusFilter.ALL : closedFilter; | ||
this.keywordFilter = keywordFilter == null ? KeywordFilter.ALL : keywordFilter; | ||
this.recruitmentId = recruitmentId; | ||
this.createdAt = createdAt; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters