Feat/퀴즈 재구현#104
Hidden character warning
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough실제 퀴즈(RealQuiz) 기능이 신규 추가되었다. JPA 엔티티(RealQuiz, RealQuizOption, UserQuiz), DTO 요청/응답 세트, JPA 리포지토리 3종, 서비스(RealQuizService), 컨트롤러(RealQuizController), 그리고 보안 설정에 공개 경로(/api/v1/realQuiz/*)가 추가되었다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant C as Client
participant RC as RealQuizController
participant RS as RealQuizService
participant RQRepo as RealQuizRepostitory
participant RQORepo as RealQuizOptionRepository
rect rgba(230,245,255,0.6)
note over C,RS: 퀴즈 생성
C->>RC: POST /api/v1/realQuiz/create (RealQuizCreateRequestDTO)
RC->>RS: createRealQuiz(request)
RS->>RQRepo: save(RealQuiz)
RS->>RQORepo: saveAll(RealQuizOption...)
RS-->>RC: RealQuizResponseDTO
RC-->>C: ApiResponse<RealQuizResponseDTO>
end
sequenceDiagram
autonumber
participant C as Client
participant RC as RealQuizController
participant RS as RealQuizService
participant UQRepo as UserQuizRepository
participant RQRepo as RealQuizRepostitory
participant RQORepo as RealQuizOptionRepository
rect rgba(235,255,235,0.6)
note over C,RS: 퀴즈 조회 및 자동 할당
C->>RC: GET /api/v1/realQuiz/list?quizType=...
RC->>RS: getRealQuiz(user, quizType)
RS->>UQRepo: findByUser(user)
alt 미할당
RS->>RQRepo: findAllByQuizType(quizType)
RS->>UQRepo: save(UserQuiz(user, firstQuiz))
RS->>RQORepo: findAllByRealQuiz(firstQuiz)
RS-->>RC: RealQuizResponseDTO
else 기할당
RS->>RQORepo: findAllByRealQuiz(assignedQuiz)
RS-->>RC: RealQuizResponseDTO
end
RC-->>C: ApiResponse<RealQuizResponseDTO>
end
sequenceDiagram
autonumber
participant C as Client
participant RC as RealQuizController
participant RS as RealQuizService
participant RQRepo as RealQuizRepostitory
participant RQORepo as RealQuizOptionRepository
rect rgba(255,240,230,0.6)
note over C,RS: 정답 확인
C->>RC: GET /api/v1/realQuiz/{quizId}/answer + body(selectedOptionOrder)
RC->>RS: getRealQuizAnswer(quizId, request)
RS->>RQRepo: findById(quizId)
RS->>RQORepo: findAllByRealQuiz(quiz)
RS-->>RC: RealQuizAnswerResponseDTO(isCorrect, ...)
RC-->>C: ApiResponse<RealQuizAnswerResponseDTO>
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
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 (15)
✨ 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 (
|
Feat/퀴즈 재구현
Summary by CodeRabbit