Skip to content

Commit

Permalink
Merge pull request #129 from Team-Umbba/feat/#128-mypage_response
Browse files Browse the repository at this point in the history
[MODIFY] 마이페이지 API 초대코드 응답 추가
  • Loading branch information
jun02160 authored Feb 25, 2024
2 parents 7e04635 + 93024c6 commit 32d41c7
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class MyUserInfoResponseDto {
private Long matchedDate;
private Integer qnaCnt;

private String inviteCode;
private String installUrl;

public static MyUserInfoResponseDto of(User myUser, User opponentUser, Parentchild parentchild, QnA qnA, long date, int qnaCnt) {

return MyUserInfoResponseDto.builder()
Expand All @@ -54,6 +57,9 @@ public static MyUserInfoResponseDto of(User myUser, Parentchild parentchild) {
.isMeChild(myUser.isMeChild())
.section(QuestionSection.YOUNG.getValue())
.matchedDate(0L)
.qnaCnt(0).build();
.qnaCnt(0)
.inviteCode(parentchild.getInviteCode())
.installUrl("http://umbba.site/")
.build();
}
}

0 comments on commit 32d41c7

Please sign in to comment.