feat : 리얼퀴즈 개선, Pannel 정보 API 구현#112
Hidden character warning
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough새 홈 패널 API와 DTO를 추가하고, HomeService에 당일 일기/퀴즈 완료 여부 계산 로직을 도입했습니다. 퀴즈 도메인은 일일(UserQuiz 기반) 흐름으로 재구성되어 컨트롤러/서비스 시그니처가 사용자 인자를 받도록 변경되었습니다. 일부 퀴즈 관련 엔드포인트가 제거되었고, 미션 패널의 오늘 완료 개수 계산이 추가되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as User
participant HC as HomeController
participant HS as HomeService
participant DR as DiaryRepository
participant UQR as UserQuizRepository
U->>HC: GET /api/v1/home/panel
HC->>HS: getPannelData(user)
HS->>DR: findMyDiaries(user)
HS->>UQR: findAllTodayUserQuizByUser(user, startOfDay, endOfDay)
HS-->>HC: PannelResponseDTO{isDiary, isChecking=false, isQuiz}
HC-->>U: ApiResponse.success(...)
sequenceDiagram
autonumber
actor U as User
participant RC as RealQuizController
participant RS as RealQuizService
participant UQR as UserQuizRepository
participant RQR as RealQuizRepository
participant UQ as UserQuiz
rect rgba(200,235,255,0.25)
note over U,RS: 오늘의 퀴즈 조회 흐름
U->>RC: GET /api/v1/real-quiz
RC->>RS: getRealQuiz(user)
RS->>UQR: findAllTodayUserQuizByUser(user, startOfDay, endOfDay)
alt 없음
RS->>RQR: create/find RealQuiz
RS->>UQR: save new UserQuiz{isCompleted=false}
end
RS-->>RC: RealQuizResponseDTO (no isCompleted)
RC-->>U: ApiResponse
end
rect rgba(225,255,225,0.35)
note over U,RS: 정답 제출 및 완료 처리
U->>RC: POST /api/v1/real-quiz/{id}/answer
RC->>RS: getRealQuizAnswer(quizId, requestDTO, user)
RS->>UQR: find today's UserQuiz by user/quiz
RS->>UQ: mark isCompleted=true
RS-->>RC: RealQuizAnswerResponseDTO
RC-->>U: ApiResponse
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (11)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
|
🚨 PR 본문이 비어있습니다! 아래 템플릿을 복사하여 PR 내용을 작성해주세요. 📝 개요
💻 작업 내용
✅ PR 체크리스트
🔗 관련 이슈
스크린샷 (선택)
|
📝 개요
💻 작업 내용
✅ PR 체크리스트
🔗 관련 이슈
스크린샷 (선택)
Summary by CodeRabbit
신기능
개선
변경 사항