-
Notifications
You must be signed in to change notification settings - Fork 0
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
마이 페이지 및 프로필 정보 수정 구현 #25
Conversation
- loginId로 회원 조회하는 findByLoginId 메서드 구현
- 기존에는 memberID가 나오는 문제 해결
- getId() 가 아닌 getLoginId()로 수정
- 학번은 수정 불가 - 이름, 전화번호, 이메일 변경 가능
Test Coverage Report
|
member.updateProfile(updateRequest.getName(), updateRequest.getPhoneNumber(), updateRequest.getEmail()); | ||
memberRepository.save(member); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setter 없이 처리한 부분 죠습니다...!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
호호 감샤합니다~
@Getter | ||
@ToString | ||
@AllArgsConstructor | ||
public static class MyPageDTO { | ||
private String loginId; | ||
private String name; | ||
private String phoneNumber; | ||
private String email; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MyPageResponse에 필드를 바로 작성하지 않고 한 번 더 MyPageDTO로 감싸신 이유가 궁금합니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
재사용성이랑 보안? 관련되서 분리를 시켜서 진행하면 좋다고 해서 따라해봤습니다!
#️⃣ 연관된 이슈
#23
📝 작업 내용