Replies: 1 comment 5 replies
-
|
VO 도입에 대해서는 동의합니다 |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
제가 이번 스프린트에 맡은 기능은 아래와 같습니다.
두 기능 모두 날짜 필터링이 존재합니다. 날짜 필터링시 파라미터에 대해 아래 검증 로직이 필요합니다.
null이여선 안됨도메인이 다르다보니 Service 마다 파라미터에 대해 검증 메서드를 각각 작성하여 중복 코드가 발생하였습니다.
중복 코드를 없애고자 별도의 VO를 도입하려 하는데 어떻게 생각하실까요??
추가로
RepositoryUtils에 아래 메서드를 추가한다면 Repository내에서 날짜 조건문을 간단히 표현할 수 있습니다!Beta Was this translation helpful? Give feedback.
All reactions