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.
#️⃣ 연관된 이슈
Resolves #116
📝 작업 내용
전체 유저의 행복 지도 API를 구축했습니다.
행복 장소와 행복 활동을 모두 조회하므로 서비스와 DTO 이름을 각각 LocationActivityService와 LocationActivityResponseDto로 지었는데, 혹시 더 좋은 이름이 있다면 언제든지 추천해주세용!
LocationHappinessAnalyzer의 getLocationActivityRankings 메서드에서 Null인 객체에 대하여 getter 메서드를 사용할 경우 NullPointerException이 발생하기 때문에 다음과 같이 예외 처리를 해주었습니다.
마찬가지의 이유로 toLocationActivityResponseDto 컨버터에도 다음과 같이 예외 처리를 해주었습니다.
예시
api/trend/top-locations로 요청 시, 다음과 같은 응답을 받을 수 있습니다.
스크린샷 (선택)
💬 리뷰 요구사항(선택)
✅ Check List