Skip to content

Commit

Permalink
fix: 회원 정보 조회 응답 imageUrl 추가 (#141)
Browse files Browse the repository at this point in the history
* fix: 회원 정보 조회 응답 imageUrl 추가

* fix: AuthApi 수정

* fix: yml 변경
  • Loading branch information
clean2001 authored Aug 12, 2024
1 parent fd27291 commit fec76eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public interface AuthApi {
"memberRole": "USER",
"socialId": "123456789",
"socialType": "KAKAO",
"accessToken": "[토큰값]"
"accessToken": "[토큰값]",
"imageUrl": null
}
"""
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ public record MemberInfoResponse(Long memberId,
String email,
MemberRole memberRole,
String socialId,
SocialType socialType) {
SocialType socialType,
String imageUrl) {
public static MemberInfoResponse of(Member member) {
return new MemberInfoResponse(member.getId(),
member.getName(),
member.getEmail(),
member.getMemberRole(),
member.getSocialId(),
member.getSocialType());
member.getSocialType(),
member.getProfileImageUrl());
}
}

0 comments on commit fec76eb

Please sign in to comment.