[#90] 전체, 연간, 월간 행복 활동 Best 3 API 구축 #94
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 #90
📝 작업 내용
ReportRankingService
에서 사용했습니다.getActivityEmojiMap
메서드입니다.getHappiestActivity
와getActivityRankings
에서 똑같은 기능을 하는 부분은 공통 메서드로 추출했습니다.테스트
/api/report/all/top-activities로 GET 요청 시 다음과 같은 응답을 받을 수 있습니다. 응답 형식은 전체 / 연간 / 월간 모두 동일하므로 전체 조회 API 예시만 첨부하겠습니다!
데이터가 없을 경우 다음과 같은 응답을 받을 수 있습니다.
데이터가 1개일 경우 다음과 같은 응답을 받을 수 있습니다. (2개일 경우에는 3위만 null)
스크린샷 (선택)
💬 리뷰 요구사항(선택)
✅ Check List