Conversation
|
Caution Review failedThe pull request is closed. Walkthrough아바타 배치 로직을 정원 중심으로 개편하고, 위시트리 성장을 2단계(잠금해제 가능 상태 → 단계 진화)로 분리했다. 정원은 슬롯 선생성 후 잠금해제만 수행하도록 변경되었고, 홈 화면 DTO/서비스는 잠금해제 가능 여부를 노출한다. 팔로우/방명록/회원가입/이미지 처리 등 관련 경로도 업데이트됐다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as User
participant AS as AvatarService
participant GR as GardenRepository
participant G as Garden
participant AMR as AvatarMasterRepo
U->>AS: createAvatar(request)
AS->>AMR: find master (by id or AI default)
AS->>GR: findFirstByUserAndIsLockedIsFalseAndAvatarIsNullOrderBySlotNumberAsc(user)
alt 빈 잠금해제 정원 존재
GR-->>AS: Optional<Garden>(emptyGarden)
AS->>G: emptyGarden.updateAvatar(newAvatar)
AS-->>U: Avatar created and placed
else 없음
AS-->>U: throw GARDEN_NOT_FOUND
end
sequenceDiagram
autonumber
actor U as User
participant GC as GardenController
participant GS as GardenService
participant WR as WishTreeRepo
participant GR as GardenRepository
participant G as Garden
note over GS: New flow: unlockNextGarden
U->>GC: POST /api/v1/gardens/unlock
GC->>GS: unlockNextGarden(userId)
GS->>WR: find WishTree by userId
alt WishTree.isUnlockable == true
GS->>WR: wishTree.evolveStage()
GS->>GR: findFirstByUserAndIsLockedIsTrueOrderBySlotNumberAsc(user)
alt Locked garden exists
GR-->>GS: Garden
GS->>G: unlock()
GS-->>GC: 200 OK
else None
GS-->>GC: throw GARDEN_NOT_FOUND
end
else Not unlockable
GS-->>GC: throw GARDEN_SLOT_LOCKED
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60–90 minutes Possibly related PRs
Suggested reviewers
Poem
📜 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 (16)
✨ 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 체크리스트
🔗 관련 이슈
스크린샷 (선택)
|
Summary by CodeRabbit
신기능
개선
버그 수정
API 변경