Merged
Conversation
Closed
|
Caution Review failedThe pull request is closed. Walkthrough투표 스트릭 조회 기능 추가. 서비스에 UserVoteStreakService 의존성 및 getVoteStreak 메서드 도입, 컨트롤러에 GET /api/votes/streak 엔드포인트 추가, 응답 DTO(GetVoteStreakResponse) 신설, 해당 서비스 메서드 단위 테스트 추가. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant VC as VoteController
participant VS as VotingService
participant US as UserVoteStreakService
participant VP as VoteProperties
Client->>VC: GET /api/votes/streak (Authenticated)
VC->>VS: getVoteStreak(userId)
VS->>US: getStreakCount(userId)
US-->>VS: currentStreak
VS->>VP: getStreakRewardCount()
VP-->>VS: rewardThreshold
VS-->>VC: GetVoteStreakResponse(currentStreak, rewardThreshold)
VC-->>Client: 200 OK + AppResponse<GetVoteStreakResponse>
rect rgba(231, 243, 255, 0.5)
note right of VS: 신규 로직: 스트릭/임계값 집계 후 DTO 반환
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🧩 작업 내용 요약
투표 streak 조회 API 구현
🔍 관련 이슈
🧠 변경 이유 및 주요 포인트
🧪 테스트 및 검증
Summary by CodeRabbit