Skip to content

Commit 05c3551

Browse files
Merge pull request #258 from prgrms-web-devcourse-final-project/develop
[EA3-68] chore: develop → main 브랜치 머지
2 parents 2e198eb + 3f661ec commit 05c3551

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/main/java/grep/neogulcoder/domain/recruitment/post/controller/dto/response/RecruitmentPostWithStudyInfo.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
@Getter
1515
public class RecruitmentPostWithStudyInfo {
1616

17+
@Schema(example = "3", description = "회원 식별자")
18+
private long userId;
19+
20+
@Schema(example = "www.s3...", description = "회원 이미지 URL")
21+
private String imageUrl;
22+
1723
@Schema(example = "닉네임", description = "작성자 회원 닉네임")
1824
private String nickname;
1925

@@ -54,10 +60,12 @@ public class RecruitmentPostWithStudyInfo {
5460
private LocalDateTime endDate;
5561

5662
@QueryProjection
57-
public RecruitmentPostWithStudyInfo(String nickname, long recruitmentPostId, String subject,
63+
public RecruitmentPostWithStudyInfo(long userId, String imageUrl, String nickname, long recruitmentPostId, String subject,
5864
String content, int recruitmentCount, RecruitmentPostStatus status,
5965
LocalDateTime createdDate, LocalDateTime expiredDate, Category category, String location,
6066
StudyType studyType, LocalDateTime startedDate, LocalDateTime endDate) {
67+
this.userId = userId;
68+
this.imageUrl = imageUrl;
6169
this.nickname = nickname;
6270
this.recruitmentPostId = recruitmentPostId;
6371
this.subject = subject;

src/main/java/grep/neogulcoder/domain/recruitment/post/repository/RecruitmentPostQueryRepository.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public RecruitmentPostQueryRepository(EntityManager em) {
3636
public RecruitmentPostWithStudyInfo findPostWithStudyInfo(Long recruitmentPostId) {
3737
return queryFactory.select(
3838
new QRecruitmentPostWithStudyInfo(
39+
user.id,
40+
user.profileImageUrl.as("imageUrl"),
3941
user.nickname,
4042
recruitmentPost.id,
4143
recruitmentPost.subject,

0 commit comments

Comments
 (0)