Skip to content

Feature/dp 385 temperature rank top1#206

Merged
projectmiluju merged 15 commits into
developfrom
feature/DP-385-temperature-rank-top1
Sep 12, 2025
Merged

Feature/dp 385 temperature rank top1#206
projectmiluju merged 15 commits into
developfrom
feature/DP-385-temperature-rank-top1

Conversation

@sunsetkk
Copy link
Copy Markdown
Collaborator

🔀 PR 제목

  • [Feature] 전체 온도 랭킹 TOP1 조회 API 추가
  • [Feature] TOP1 캐싱 스케줄러 구현

📌 작업 내용 요약

어떤 작업을 했는지 간략히 설명해주세요.

  • /api/players/temperature/rank/top1 API 구현
  • ReputationRankingScheduler 추가 (1시간 간격 TOP1 갱신)
  • TemperatureRankResponse에 updatedAt 필드 및 toBuilder 추가
  • UserReputationRepository에 TOP1 조회 메서드 추가
  • ReputationQueryService에 TOP1 조회 로직 구현

✅ 체크리스트

PR을 올리기 전에 아래 항목을 확인했나요?

  • 기능 요구사항을 모두 구현했나요?
  • 로컬에서 기능을 직접 테스트했나요?
  • 코드 컨벤션 및 스타일을 지켰나요?
  • 관련된 이슈에 연결했나요?

🔗 관련 이슈

Closes #이슈번호 또는 Related to #이슈번호 형태로 작성


📎 기타 참고 사항

추가로 리뷰어가 참고해야 할 사항이 있다면 적어주세요.

  • 캐싱 방식은 현재 인메모리(AtomicReference)로 구현
  • DM 채팅방 확인 로직은 TODO 처리
  • 서버 시작 시 바로 1회 실행 되도록 스케줄러 init 메서드 구현
image ✅ TOP1 랭킹 갱신 완료: userId=11, temp=95.0, updatedAt=2025-09-12T06:29:13.913208Z image

온도 변경 후 조회
image

image

정시에 갱신 확인
image
✅ TOP1 랭킹 갱신 완료: userId=3, temp=99.9, updatedAt=2025-09-12T07:00:00.179498Z

image

@projectmiluju projectmiluju merged commit d23b625 into develop Sep 12, 2025
@projectmiluju projectmiluju deleted the feature/DP-385-temperature-rank-top1 branch September 13, 2025 07:54
@sunsetkk sunsetkk restored the feature/DP-385-temperature-rank-top1 branch September 14, 2025 08:52
@sunsetkk sunsetkk deleted the feature/DP-385-temperature-rank-top1 branch September 14, 2025 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BE][Feature] 전체 온도 랭킹 TOP1 조회 API 및 랭킹 스케줄러 구현 (1시간 간격 캐싱)

2 participants