-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat : Owner 회원가입 & 로그인 구현 #60
Conversation
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.
고생하셨습니다~! 통합테스트 시 에러발생에 대한 테스트를 한다면 에러메세지 검증까지는 하는 것도 좋을 것 같아요 😃
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.
로직 구현하느라 고생많으셨습니다~
public record JoinOwnerRequest( | ||
|
||
String name, | ||
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.
message 옵션으로 검증 메세지를 추가해줘도 좋을 것 같아요!
|
||
ALREADY_EXIST_OWNER("이미 존재하는 점주입니다"), | ||
BAD_REQUEST_EMAIL_OR_PASSWORD("이메일 혹은 비밀번호를 확인해주세요"), | ||
BAD_REQUEST_INPUT_GENDER_TYPE("성별 타입을 양식대로 입력해주세요"); | ||
|
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.
BadRequestCustomException으로 감싸주니까 INVALID_EMAIL_OR_PASSWORD
이렇게 네이밍해도 괜찮지 않을까 생각이 들었습니다!
.filter(gender -> gender.isEqual(input)) | ||
.findAny() | ||
.orElseThrow(() -> new BadRequestCustomException(BAD_REQUEST_INPUT_GENDER_TYPE)); | ||
} |
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.
request에서 검증하지 않고 Enum에서 input을 검증하면 캡슐화의 장점이 있는건지 궁금합니다!
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.
Enum으로의 변환로직? 이라고 생각할 때, request dto보다는 Enum 안에서 따로 로직이 있어야 된다고 생각하였습니다..!
String email = "abc1234@gmail.com"; | ||
String password = "qwer1234"; | ||
String wrongPassword = "qwer12345"; | ||
|
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.
private final 붙여도 될 것 같아요~
closed #17
⛏ 작업 상세 내용
📝 작업 요약
☑️ 중점적으로 리뷰 할 부분