Skip to content

Commit

Permalink
Merge pull request #36 from Leets-Official/35-bug-업데이트-응답-dto에-랭킹이-빠져…
Browse files Browse the repository at this point in the history
…있는-문제

fix: 유저 페이지 응답 DTO에 랭킹 추가
  • Loading branch information
yechan-kim authored Jul 31, 2024
2 parents 403e2c1 + 0a598c8 commit 9b9fcb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public record CommitResponse(
Boolean isMyAccount,
String githubId,
Integer exp,
Integer ranking,
String tierName,
String characterUrl,
Integer consecutiveCommitDays,
Expand All @@ -23,6 +24,7 @@ public static CommitResponse of(boolean isMyAccount, User user){
.isMyAccount(isMyAccount)
.githubId(user.getGithubId())
.exp(user.getExp())
.ranking(user.getRanking())
.tierName(user.getTier().getTierName())
.characterUrl(user.getTier().getCharacterUrl())
.consecutiveCommitDays(user.getConsecutiveCommitDays())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public record UserInfoResponse(
Boolean isMyAccount,
String githubId,
Integer exp,
Integer ranking,
String tierName,
String characterUrl,
Integer consecutiveCommitDays,
Expand All @@ -23,6 +24,7 @@ public static UserInfoResponse of(boolean isMyAccount, User user){
.isMyAccount(isMyAccount)
.githubId(user.getGithubId())
.exp(user.getExp())
.ranking(user.getRanking())
.tierName(user.getTier().getTierName())
.characterUrl(user.getTier().getCharacterUrl())
.consecutiveCommitDays(user.getConsecutiveCommitDays())
Expand Down

0 comments on commit 9b9fcb0

Please sign in to comment.