Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor/#185] 내정보조회 사진정보 추가 #207

Merged
merged 1 commit into from
Jan 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading