Skip to content

Commit 0cc34db

Browse files
authored
Merge pull request #234 from prgrms-web-devcourse-final-project/feature/EA3-188-my-applications-add-recruitment-id
[EA3-188] feature: 내 스터디 신청 목록 조회 응답 필드 추가
2 parents 086ba29 + b189682 commit 0cc34db

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/main/java/grep/neogulcoder/domain/studyapplication/controller/dto/response/MyApplicationPagingResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class MyApplicationPagingResponse {
1313
@Schema(
1414
description = "내가 신청한 스터디 목록",
1515
example = "[{" +
16-
"\"applicationId\": 1," +
16+
"\"recruitmentPostId\": 1," +
1717
"\"name\": \"자바 스터디\"," +
1818
"\"leaderNickname\": \"너굴\"," +
1919
"\"capacity\": 4," +

src/main/java/grep/neogulcoder/domain/studyapplication/controller/dto/response/MyApplicationResponse.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
@Getter
1313
public class MyApplicationResponse {
1414

15-
@Schema(description = "신청 번호", example = "1")
16-
private Long applicationId;
15+
@Schema(description = "모집글 번호", example = "1")
16+
private Long recruitmentPostId;
1717

1818
@Schema(description = "스터디 이름", example = "자바 스터디")
1919
private String name;
@@ -49,9 +49,9 @@ public class MyApplicationResponse {
4949
private ApplicationStatus status;
5050

5151
@QueryProjection
52-
public MyApplicationResponse(Long applicationId, String name, String leaderNickname, int capacity, int currentCount, LocalDateTime startDate,
52+
public MyApplicationResponse(Long recruitmentPostId, String name, String leaderNickname, int capacity, int currentCount, LocalDateTime startDate,
5353
String imageUrl,String introduction, Category category, StudyType studyType, boolean isRead, ApplicationStatus status) {
54-
this.applicationId = applicationId;
54+
this.recruitmentPostId = recruitmentPostId;
5555
this.name = name;
5656
this.leaderNickname = leaderNickname;
5757
this.capacity = capacity;

src/main/java/grep/neogulcoder/domain/studyapplication/repository/ApplicationQueryRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public Page<ReceivedApplicationResponse> findReceivedApplicationsPaging(Long rec
7272
public Page<MyApplicationResponse> findMyStudyApplicationsPaging(Pageable pageable, Long userId, ApplicationStatus status) {
7373
List<MyApplicationResponse> applications = queryFactory
7474
.select(new QMyApplicationResponse(
75-
studyApplication.id,
75+
recruitmentPost.id,
7676
study.name,
7777
user.nickname,
7878
study.capacity,

src/main/java/grep/neogulcoder/domain/timevote/repository/TimeVoteQueryRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import com.querydsl.jpa.impl.JPAQueryFactory;
88
import grep.neogulcoder.domain.study.QStudyMember;
99
import grep.neogulcoder.domain.timevote.dto.response.TimeVoteSubmissionStatusResponse;
10-
import grep.neogulcoder.domain.timevote.entity.QTimeVote;
10+
import grep.neogulcoder.domain.timevote.QTimeVote;
1111
import grep.neogulcoder.domain.users.entity.QUser;
1212
import jakarta.persistence.EntityManager;
1313
import com.querydsl.core.Tuple;

0 commit comments

Comments
 (0)