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

마이 페이지 및 프로필 정보 수정 구현 #25

Merged
merged 11 commits into from
Nov 22, 2024
Merged

Conversation

YuSung011017
Copy link
Contributor

#️⃣ 연관된 이슈

#23

📝 작업 내용

  • Optional 객체를 사용하여 null 값 처리를 조금 더 간편하게 하도록 했습니다
  • save() 메소드를 활용하여 개인 정보를 수정할 수 있게 했습니다.
  • 학번은 바꾸지 않고 이름, 전화번호, 이메일을 변경할 수 있게 하였습니다

KakaoTalk_20241122_195737515

@YuSung011017 YuSung011017 linked an issue Nov 22, 2024 that may be closed by this pull request
2 tasks
Copy link

Test Coverage Report

Overall Project 35.71% -41.6% 🍏
Files changed 0% 🍏

File Coverage
MyPageService.java 0% 🍏
Member.java 0% 🍏
MyPageController.java 0% 🍏
MyPageRequest.java 0% 🍏
MyPageResponse.java 0% 🍏

Comment on lines +35 to +36
member.updateProfile(updateRequest.getName(), updateRequest.getPhoneNumber(), updateRequest.getEmail());
memberRepository.save(member);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setter 없이 처리한 부분 죠습니다...!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

호호 감샤합니다~

Comment on lines +7 to +15
@Getter
@ToString
@AllArgsConstructor
public static class MyPageDTO {
private String loginId;
private String name;
private String phoneNumber;
private String email;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MyPageResponse에 필드를 바로 작성하지 않고 한 번 더 MyPageDTO로 감싸신 이유가 궁금합니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

재사용성이랑 보안? 관련되서 분리를 시켜서 진행하면 좋다고 해서 따라해봤습니다!

@holyPigeon holyPigeon merged commit 4e1f8ac into develop Nov 22, 2024
1 check passed
@holyPigeon holyPigeon deleted the feat/#23 branch November 22, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

마이 페이지 구현
2 participants