Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: 유저 주간 랭킹 기능 구현 (#42) #43

Merged
merged 4 commits into from
Oct 30, 2023

Conversation

win-luck
Copy link
Contributor

@win-luck win-luck commented Oct 30, 2023

  • getUserRankByWeek(유저 주간랭킹 기능) FoodService에서 구현
  • getNutritionSumByDateMap은 산출한 날짜에 소속된 음식을 날짜 Key-음식영양분 Value의 Map 형태로 반환
  • calculateUserScoreThisWeek를 통해 생성한 Map을 순회하며 기준섭취량과 비교한 섭취 비율을 계산
  • calculateNutriRatioAndScore은 비율에 따른 영양분별 점수를 계산하여 반환
  • 기존 메서드는 테스트와의 의존성 등을 감안해 놔두되, 추후 리팩토링 및 정리 예정
  • 그 외 코드 정리 및 FavoriteFoodRepository 중복등록 예외처리 추가
  • 잔여 기능(일기 분석)은 Dto만 구현하고 실제 기능 구현은 위임

Next

  • User 패키지 주요 데이터에 Redis 캐싱 적용

@win-luck win-luck requested a review from synoti21 October 30, 2023 11:00
@win-luck win-luck self-assigned this Oct 30, 2023
@win-luck win-luck added the feat 기능 구현 label Oct 30, 2023
@win-luck win-luck linked an issue Oct 30, 2023 that may be closed by this pull request
@synoti21
Copy link
Contributor

구현 기간이 대략 한 달 남았는데 마지막까지 힘내봅시다!

@synoti21 synoti21 merged commit b6e6d92 into master Oct 30, 2023
1 check passed
@synoti21 synoti21 deleted the feature/42-feat-foodservice branch November 6, 2023 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat 기능 구현
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat: FoodService 주간 랭킹 기능 구현 (#42)
2 participants