Skip to content

Commit

Permalink
Merge pull request #207 from whitem4rk/refactor/#185
Browse files Browse the repository at this point in the history
[refactor/#185] 내정보조회 사진정보 추가
  • Loading branch information
whitem4rk authored Jan 6, 2024
2 parents 6f4fd4a + 5cd4a9a commit 6172670
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 6172670

Please sign in to comment.