Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
💡 작업 내용
💡 자세한 설명
일급 컬렉션 적용
위와 같이 수거함 태그의 유효성을 검증하는 로직이 서비스 계층 여러 메서드에 존재했습니다.
따라서
List<Tag>
타입의 변수를 가지는 일급 컬렉션Tags
를 만들고, 유효성 검증 로직을 해당 객체에 위임했습니다.이를 통해 서비스 계층의 중복 코드를 제거할 수 있었습니다.
위도, 경도 래핑
기존 모든 계층의 메서드에서는 다음과 같이 위도와 경도를 전달 받고 있었습니다.
이렇게 위도와 경도를 전달 받게 되면, 파라미터 순서를 실수할 위험이 있습니다.
그래서 GeoPoint라는 클래스로 래핑하였습니다.
이를 통해 순서를 틀릴 수 있는 문제를 방지할 수 있으며, 코드의 가독성도 향상시킬 수 있게 되었습니다.
✅ 셀프 체크리스트
closes #115