Conversation
|
Caution Review failedThe pull request is closed. Walkthrough여러 도메인 서비스에서 경험치 지급을 WishTree 포인트 지급으로 전환했다. WishTree 성장 시 정원 슬롯 해제는 GardenService 직접 호출 대신 WishTreeEvolvedEvent 발행과 이벤트 리스너 처리로 변경됐다. 여러 서비스가 WishTreeService를 의존 주입받아 포인트를 적립한다. RealQuiz 응답에 isCorrect 필드가 추가됐다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant GardenService
participant DailyQSvc as DailyQuestionAnswerService
participant DiaryService
participant RealQuizService
participant GuestbookService
participant NotiListener as NotificationEventListener
participant WishTreeService
rect rgb(245,248,255)
note over User,WishTreeService: 액션 시 WishTree 포인트 적립
User->>GardenService: waterOwn/Friend, sunlight
GardenService->>WishTreeService: addPointsToWishTree(userId, 2L/3L)
User->>DailyQSvc: 답변 저장
DailyQSvc->>WishTreeService: addPointsToWishTree(userId, 15L)
User->>DiaryService: 일기 생성
DiaryService->>WishTreeService: addPointsToWishTree(userId, 40L)
User->>RealQuizService: 정답 제출
RealQuizService->>RealQuizService: isCorrect 계산
alt 정답
RealQuizService->>WishTreeService: addPointsToWishTree(userId, 15L)
end
User->>GuestbookService: 방명록 작성
GuestbookService->>WishTreeService: addPointsToWishTree(writerId, 2L)
NotiListener->>WishTreeService: (친구 물주기 처리 중) addPointsToWishTree(senderId, 2L)
end
sequenceDiagram
autonumber
participant WishTreeService
participant EventBus as ApplicationEventPublisher
participant GardenService as GardenService(@EventListener)
rect rgb(245,255,245)
note over WishTreeService,GardenService: 성장 이벤트 기반 슬롯 해제
WishTreeService->>WishTreeService: 상태 변화 감지 (TREE로 진화)
WishTreeService->>EventBus: publish(WishTreeEvolvedEvent(userId))
EventBus-->>GardenService: WishTreeEvolvedEvent
GardenService->>GardenService: handleWishTreeEvolved(event)로 슬롯 해제
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 (9)
✨ 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 체크리스트
🔗 관련 이슈
스크린샷 (선택)
|
#132
Summary by CodeRabbit