dto 명세 수정#108
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough아바타/가든 DTO 매핑과 패키지 구조를 조정하고, 홈 화면 응답 구조를 다중 가든 요약 중심으로 개편했습니다. 사용자 프로필 조회 기능과 관련 DTO를 추가하고, 일일 미션 패널에 오늘 완료 미션 수를 포함했습니다. 게스트북 DTO 패키지를 response로 이동했으며, 일부 포맷 정리를 수행했습니다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant Controller as UserController
participant Service as UserService
participant UserRepo as UserRepository
participant FollowRepo as FollowRepository
participant GardenRepo as GardenRepository
participant LogRepo as FriendWateringLogRepository
Client->>Controller: GET /users/{userId}
Controller->>Service: getUserProfile(currentUserId, userId)
Service->>UserRepo: findById(currentUserId)
Service->>UserRepo: findById(userId)
Service->>FollowRepo: check follow status
Service->>GardenRepo: find gardens of profile user
Service->>LogRepo: count today's watering by current user
Service-->>Controller: UserProfileResponse (followStatus, leftWaterCount, userGardens[])
Controller-->>Client: ApiResponse<UserProfileResponse>
sequenceDiagram
autonumber
actor Client
participant Controller as HomeController
participant Service as HomeService
participant GardenRepo as GardenRepository
participant MissionRepo as MissionRepository
note over Service: 리팩터링된 홈 요약 응답 흐름
Client->>Controller: GET /home
Controller->>Service: getHomeScreenData(userId)
Service->>GardenRepo: 사용자 가든 목록 조회
Service->>Service: 시작 시각 계산(getStartOfCurrentWateringDay/SunlightDay)
Service->>MissionRepo: 오늘 미션 조회
Service-->>Controller: HomeResponseDto(UserInfo, GardenSummaries[], Missions)
Controller-->>Client: ApiResponse<HomeResponseDto>
sequenceDiagram
autonumber
actor Client
participant Controller as MissionController
participant Service as UserDailyMissionService
participant Repo as UserDailyMissionRepository
Client->>Controller: GET /missions/panel
Controller->>Service: getMissionPanel(userId)
Service->>Repo: find today's missions
Service->>Service: 완료 여부 카운트(todayMissionCount)
Service-->>Controller: MissionPanelResponse(todayMissionCount, dailyMissions, wishTree)
Controller-->>Client: ApiResponse<MissionPanelResponse>
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 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 (22)
✨ 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 (
|
수정
Summary by CodeRabbit