diff --git a/module-auth/src/main/java/com/inhabas/api/auth/domain/oauth2/member/dto/MyProfileDto.java b/module-auth/src/main/java/com/inhabas/api/auth/domain/oauth2/member/dto/MyProfileDto.java index 4a1a8443..566c3824 100644 --- a/module-auth/src/main/java/com/inhabas/api/auth/domain/oauth2/member/dto/MyProfileDto.java +++ b/module-auth/src/main/java/com/inhabas/api/auth/domain/oauth2/member/dto/MyProfileDto.java @@ -31,6 +31,9 @@ public class MyProfileDto { @Pattern(regexp = "^(010)-\\d{4}-\\d{4}$") private String phoneNumber; + @NotNull + private String picture; + @NotNull private Role role; @@ -41,13 +44,14 @@ public class MyProfileDto { @Builder public MyProfileDto(String name, String studentId, String major, Integer grade, String email, - String phoneNumber, Role role, MemberType type, String introduce) { + String phoneNumber, String picture, Role role, MemberType type, String introduce) { this.name = name; this.studentId = studentId; this.major = major; this.grade = grade; this.email = email; this.phoneNumber = phoneNumber; + this.picture = picture; this.role = role; this.type = type; this.introduce = introduce; diff --git a/module-auth/src/main/java/com/inhabas/api/auth/domain/oauth2/member/service/MemberServiceImpl.java b/module-auth/src/main/java/com/inhabas/api/auth/domain/oauth2/member/service/MemberServiceImpl.java index 79ef31f4..60e5ada6 100644 --- a/module-auth/src/main/java/com/inhabas/api/auth/domain/oauth2/member/service/MemberServiceImpl.java +++ b/module-auth/src/main/java/com/inhabas/api/auth/domain/oauth2/member/service/MemberServiceImpl.java @@ -195,6 +195,7 @@ public MyProfileDto getMyProfile(Long memberId) { .major(member.getSchoolInformation().getMajor()) .grade(member.getSchoolInformation().getGrade()) .email(member.getEmail()) + .picture(member.getPicture()) .phoneNumber(member.getPhone()) .role(member.getRole()) .type(member.getSchoolInformation().getMemberType())