Skip to content

Commit

Permalink
refactor(profile): 상세 조회에 admissionYear 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobhboy committed Feb 11, 2024
1 parent 8082e2b commit cb9ca39
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
public record ProfileResponse(
Long userId,
String name,
Integer admissionYear,
String imageUrl,
Major major,
String githubUrl,
Expand All @@ -18,6 +19,7 @@ public static ProfileResponse from(Profile profile) {
return new ProfileResponse(
profile.getWriter().getId(),
profile.getWriter().getName(),
profile.getInformation().getAdmissionYear(),
profile.getInformation().getImageUrl(),
profile.getInformation().getMajor(),
profile.getOnlineProfile().getGithubUrl(),
Expand Down

0 comments on commit cb9ca39

Please sign in to comment.