[#103] 전체, 연간, 월간 모든 위치 데이터 랭킹 조회 API 구축 #105
Merged
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 #103
📝 작업 내용
전체, 연간, 월간 모든 위치 랭킹 조회 API를 구축했습니다.
기존
getLocationRankings
메서드를 오버로딩하여 두 가지 버전으로 분리했습니다.record 리스트와 topCount를 인자로 함께 받는 메서드는 topCount 파라미터를 받아 상위 N개의 활동 랭킹을 반환합니다.
record 리스트만 인자로 받는 메서드는 topCount 파라미터 없이 모든 활동 랭킹을 반환합니다. 이 메서드는 존재하는 데이터까지만 반환하며, 데이터가 없는 경우 null 값을 반환하지 않습니다.
api/report/all/ranking/locations로 요청 시 다음과 같은 결과를 얻을 수 있습니다.
스크린샷 (선택)
💬 리뷰 요구사항(선택)
✅ Check List