Skip to content

Commit

Permalink
chore(profile): 리스트로 조회시 online profile도 같이 return
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobhboy committed Apr 30, 2024
1 parent 4a5bf38 commit d73919f
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ public record SimpleProfileResponse(
String introduction,
Long cardinal,
Long userId,
Boolean isRecruited
Boolean isRecruited,
String githubId,
String resumeUrl,
String portfolioUrl
) {
public static SimpleProfileResponse from(Profile profile) {
String introduction = profile.getInformation().getIntroduction();
Expand All @@ -31,7 +34,10 @@ public static SimpleProfileResponse from(Profile profile) {
introduction,
profile.getWriter().getCardinal(),
profile.getWriter().getId(),
!StringUtil.isBlank(profile.getCompany())
!StringUtil.isBlank(profile.getCompany()),
profile.getOnlineProfile().getGithubId(),
profile.getOnlineProfile().getResumeUrl(),
profile.getOnlineProfile().getPortfolioUrl()
);
}
}

0 comments on commit d73919f

Please sign in to comment.