Skip to content

Conversation

@naekang
Copy link
Collaborator

@naekang naekang commented Dec 4, 2022

  • 사용자 회원 가입 기능 구현
  • 회원 가입 테스트 코드 작성

@naekang naekang added the feature New feature or request label Dec 4, 2022
@naekang naekang self-assigned this Dec 4, 2022
@naekang naekang linked an issue Dec 4, 2022 that may be closed by this pull request
2 tasks
@younghoondoodoom
Copy link
Contributor

File Coverage [55.56%]
MemberServiceImpl.java 76.53%
MemberController.java 0%
Total Project Coverage 44.67%

Copy link
Collaborator

@bokyung95 bokyung95 left a comment

Choose a reason for hiding this comment

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

코드 깔끔하게 잘 작성해주셨네요!
한 가지 저의 의견 남겨봅니다. 확인 부탁드려요:)

.birth(LocalDate.of(2022, 02, 15))
.gender(Gender.MALE)
.isEmailAuth(true)
.build();
Copy link
Collaborator

Choose a reason for hiding this comment

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

SignUpRequest를 생성하는 부분이 여러 번 반복되고 있는 것 같아
따로 메서드로 추출하면 중복코드가 줄어들 수 있을 것 같습니다!

Copy link
Contributor

@younghoondoodoom younghoondoodoom left a comment

Choose a reason for hiding this comment

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

주말에도 고생하셨습니다! 제 생각 코멘트로 남겼으니 참고 부탁드릴게요
그리고 제 생각에는 불필요한 공백줄이 조금 있는것 같은데 커밋하시기 전에 option+command+L로 포멧팅하고 올려주시는게 어떠실까요??


@JsonProperty("isEmailAuth")
private boolean isEmailAuth;

Copy link
Contributor

Choose a reason for hiding this comment

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

dto에서 validation을 넣으면 좋을 것 같습니다

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

넵 추가하겠습니다!

public class MemberServiceImpl implements MemberService {

private final PasswordEncoder passwordEncoder;
private final EmailService emailService;
Copy link
Contributor

Choose a reason for hiding this comment

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

저번에 말씁드리려다가 못 드렸는데 MemberService에서 다른 Service 계층에 의존하는 것이 조금 어색한 것 같습니다. 일반 Component로 등록하는 방식은 어떠신가요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

참고해서 수정하겠습니다! 🤟

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

클래스명 변경없이 어노테이션의 수정만을 말씀하시는게 맞을까요?

Copy link
Contributor

Choose a reason for hiding this comment

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

클래스 명도 수정 하는 것이 좋을 것 같습니다! 이름을 보면 service 계층이구나 할 수 있기 때문에요

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

넵 알겠습니다!


if (!signUpRequest.getPassword().equals(signUpRequest.getPasswordCheck())) {
throw new NotMatchPasswordException();
}
Copy link
Contributor

Choose a reason for hiding this comment

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

이 부분은 Dto에서 Validation처리를 통해 할 수 있을 것 같습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

회원 가입 기능 구현

4 participants