-
Notifications
You must be signed in to change notification settings - Fork 10
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
[6주차 과제] 서예원 과제 제출합니다. #11
base: yewon
Are you sure you want to change the base?
Conversation
타켓 브랜치 수정하고, 다시 pr 날려주세여 |
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.
LGTM~
리뷰사항을 반영해서 다음과제를 진행하세요~
@@ -26,10 +29,43 @@ public String createForm() { | |||
public String create(MemberForm form) { |
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.
service 클래스를 만들었네요~~ 사용자가 회원가입을 하는건 비즈니스 로직 아닐까요? Service를 만든김에 사용자 생성을 service 클래스에서 해보세요~~
@@ -30,6 +30,15 @@ public Optional<Member> findByName(String name) { | |||
.findAny(); | |||
} | |||
|
|||
public Optional<Member> findByEmail(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.
emal이 중복된 사용자가 있으면 어떡하죠? findAny()는 너무 무책임한것 같습니다아
@@ -28,6 +28,18 @@ private void validateDuplicateMember(Member member) { | |||
}); | |||
} | |||
|
|||
|
|||
public Optional<Member> findByEmail(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.
validateDuplicateMember를 보고 이메일 중복 검증을 추가해보세요~~
No description provided.