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

[6주차 과제] 서예원 과제 제출합니다. #11

Open
wants to merge 2 commits into
base: yewon
Choose a base branch
from

Conversation

Yewon2ee
Copy link

No description provided.

@genius00hwan
Copy link

타켓 브랜치 수정하고, 다시 pr 날려주세여

@jumining jumining changed the base branch from main to yewon August 19, 2024 06:58
Copy link

@genius00hwan genius00hwan left a 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) {

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) {

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) {

Choose a reason for hiding this comment

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

validateDuplicateMember를 보고 이메일 중복 검증을 추가해보세요~~

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