Skip to content

Conversation

@ye-zin
Copy link
Contributor

@ye-zin ye-zin commented Aug 13, 2025

#️⃣연관된 이슈

#108

📝작업 내용

회원 가입 시, DTO 응답을 Converter를 통한 응답으로 변경
500 error -> 400 error로 수정
"회원 가입이 완료되었습니다." message 삭제

스크린샷

image -> 수정 전 image image image -> 수정 후 image -> message 삭제

@ye-zin ye-zin self-assigned this Aug 13, 2025
@ye-zin ye-zin added the ♻️ Refactor 대망의 리팩토링 label Aug 13, 2025
// 이메일 중복 검사
if (userRepository.existsByEmail(request.getEmail())) {
throw new IllegalArgumentException("이미 사용 중인 이메일입니다.");
throw new ExceptionHandler(ErrorStatus.DUPLICATE_EMAIL);
Copy link
Member

Choose a reason for hiding this comment

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

ErrorStatus 임포트 할 때 import static EatPic.spring.global.common.code.status.ErrorStatus.*; 이런 식으로 해서 그냥 DUPLICATE_NICKNAME 에러 상수만 호출하는 식으로 추후에 리펙토링 하면 좋을 것 같습니다. 수고하셨습니당~

@2anizirong 2anizirong merged commit e0b03fc into main Aug 13, 2025
2 checks passed
@2anizirong 2anizirong deleted the feature/108-users-email-signup branch August 19, 2025 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ Refactor 대망의 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants