-
Notifications
You must be signed in to change notification settings - Fork 1
feat: 승인된 동아리 멤버의 지원서 리스트 조회 API 추가 #337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3380f76
feat: 승인 회원 지원서 리스트 조회 기반 추가
dh2906 0a5a3f8
feat: 승인 회원 지원서 통합 조회 API 추가
dh2906 953c166
perf: 지원서 답변 배치 조회로 N+1 감소
dh2906 6d1204b
refactor: 공통된 승인 회원 지원서 조회 조건 통합
dh2906 8c36560
perf: 승인 회원 지원서 답변 조회 페이지네이션 적용
dh2906 1d39916
refactor: 지원서 답변 리스트 생성 시 appliedAt별 문항 조회 로직을 공통 캐시로 정리
dh2906 cb277b6
refactor: 지원서 답변 리스트 조립 시 문항 조회를 구간 사전조회로 통합해 N+1을 완화
dh2906 4d81d3f
chore: 미사용 메소드 제거
dh2906 e6de9e3
chore: JPQL 쿼리문과 일관성 통일
dh2906 e7f57b3
fix: 승인 멤버 신청 count 쿼리에 user 조인을 추가해 predicate 해석 일관성을 보장
dh2906 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
40 changes: 40 additions & 0 deletions
40
src/main/java/gg/agit/konect/domain/club/dto/ClubMemberApplicationAnswersResponse.java
This file contains hidden or 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,40 @@ | ||
| package gg.agit.konect.domain.club.dto; | ||
|
|
||
| import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| import org.springframework.data.domain.Page; | ||
|
|
||
| import gg.agit.konect.domain.club.model.ClubApply; | ||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
|
|
||
| public record ClubMemberApplicationAnswersResponse( | ||
| @Schema(description = "지원서 총 개수", example = "3", requiredMode = REQUIRED) | ||
| Long totalCount, | ||
|
|
||
| @Schema(description = "현재 페이지에서 조회된 지원서 개수", example = "3", requiredMode = REQUIRED) | ||
| Integer currentCount, | ||
|
|
||
| @Schema(description = "최대 페이지", example = "2", requiredMode = REQUIRED) | ||
| Integer totalPage, | ||
|
|
||
| @Schema(description = "현재 페이지", example = "1", requiredMode = REQUIRED) | ||
| Integer currentPage, | ||
|
|
||
| @Schema(description = "승인된 회원 지원서 목록", requiredMode = REQUIRED) | ||
| List<ClubApplicationAnswersResponse> applications | ||
| ) { | ||
| public static ClubMemberApplicationAnswersResponse from( | ||
| Page<ClubApply> page, | ||
| List<ClubApplicationAnswersResponse> applications | ||
| ) { | ||
| return new ClubMemberApplicationAnswersResponse( | ||
| page.getTotalElements(), | ||
| page.getNumberOfElements(), | ||
| page.getTotalPages(), | ||
| page.getNumber() + 1, | ||
| applications | ||
| ); | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.