Skip to content

Commit 355f133

Browse files
authored
Merge pull request #107 from Daily-Step/feat/106
[Feat/106] 마이페이지 조회 API 응답 값 추가
2 parents e7b09f4 + f62373d commit 355f133

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/com/challenge/api/service/member/response/MyPageResponse.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
public class MyPageResponse {
99

1010
private final String profileImg;
11+
private final String nickname;
1112
private final Long ongoingCount;
1213
private final Long succeedCount;
1314
private final Long totalCount;
1415

1516
@Builder
16-
public MyPageResponse(String profileImg, Long ongoingCount, Long succeedCount, Long totalCount) {
17+
public MyPageResponse(String profileImg, String nickname, Long ongoingCount, Long succeedCount, Long totalCount) {
1718
this.profileImg = profileImg;
19+
this.nickname = nickname;
1820
this.ongoingCount = ongoingCount;
1921
this.succeedCount = succeedCount;
2022
this.totalCount = totalCount;
@@ -23,6 +25,7 @@ public MyPageResponse(String profileImg, Long ongoingCount, Long succeedCount, L
2325
public static MyPageResponse of(Member member, Long ongoing, Long succeed, Long total) {
2426
return MyPageResponse.builder()
2527
.profileImg(member.getProfileImg())
28+
.nickname(member.getNickname())
2629
.ongoingCount(ongoing)
2730
.succeedCount(succeed)
2831
.totalCount(total)

0 commit comments

Comments
 (0)