-
Notifications
You must be signed in to change notification settings - Fork 4
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
refactor: 잡포스트 리팩토링 #77
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.
작성하느라 수고하셨습니다! 코드 약간만 수정 부탁드릴께요^^
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.
MethodArgumentNotValidException, ConstraintViolationException은 GlobalControllerAdvice에서 처리하고 있으므로 제외해야 할 것 같습니다.
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.
jobPostId와 memberId의 @NotNull
메시지가 동일한 이유가 궁금합니다.
또한 @Min()
으로 설정해주셨는데, 관련 에러 메시지도 명시해주셨으면 합니다.
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.
데이터 검증을 사용하는 어노테이션에는 @Valid
와 @Validated
가 있습니다.
약간 수정이 필요한 부분이 있는 것 같습니다. 아래 링크를 참고하여 수정해주셨으면 합니다.
필요하시다면 예시로 FeedController를 참고해주세요.
https://medium.com/sjk5766/valid-vs-validated-%EC%A0%95%EB%A6%AC-5665043cd64b
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.
마찬가지로 MethodArgumentNotValidException, ConstraintViolationException은 GlobalControllerAdvice에서 처리하고 있으므로 제외해야 할 것 같습니다. 만약 여러 ControllerAdvice가 같은 Exception을 처리하게 될 경우, 잘 모르겠지만 Ambiguous 관련 오류가 발생할 것 같습니다.
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.
startDate와 endDate의 @FutureOrPresent
날짜 범위가 잘못 설정되어 있는 것 같습니다.
startDate와 endDate는 커스텀 가능하게 하는 게 낫지 않을까요?
후에 해당 게시글을 참고할 때 DTO에서 오류가 발생할 수 있으니까요.
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.
혹시 파일 크기 제한을 삭제하신 이유가 있으실까요?
closed #이슈번호
#64
#️⃣연관된 이슈
☑️ PR 유형
📝 작업 내용
1회 사이클 후 구현 예정 기능
✅ 피드백 반영사항
💬 리뷰 요구사항