Conversation
…-info # Conflicts: # src/main/java/konkuk/thip/feed/application/mapper/FeedQueryMapper.java
[feat] 피드 작성을 위한 화면 조회 api 및 기록을 피드에 핀하기 api 개발
|
Caution Review failedThe pull request is closed. Walkthrough여러 서비스에서 트랜잭션 어노테이션을 Spring으로 전환했다. 피드 작성 화면용 조회 API와 태그 조회/매핑/캐시 로직을 추가했다. 기록 핀 고정 API를 도입하여 도메인 검증, 응답 DTO, Swagger 응답 상수, 테스트를 포함해 컨트롤러·서비스·포트를 확장했다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant Controller as FeedQueryController
participant UseCase as FeedShowWriteInfoUseCase
participant Service as FeedShowWriteInfoService
participant Port as FeedQueryPort
participant Repo as FeedQueryRepository
participant Mapper as FeedQueryMapper
Client->>Controller: GET /feeds/write-info
Controller->>UseCase: showFeedWriteInfo()
UseCase->>Service: delegate
Service->>Port: findAllTags()
Port->>Repo: findAllTags()
Repo-->>Port: List<TagCategoryQueryDto>
Port-->>Service: rows
Service->>Mapper: toTagsWithCategoryResult(rows)
Mapper-->>Service: List<TagsWithCategoryResult>
Service-->>Controller: FeedShowWriteInfoResponse
Controller-->>Client: 200 OK + BaseResponse
sequenceDiagram
autonumber
actor Client
participant Controller as RecordQueryController
participant UseCase as RecordPinUseCase
participant Service as RecordPinService
participant Validator as RoomParticipantValidator
participant RecordPort as RecordCommandPort
participant BookPort as BookCommandPort
participant Mapper as BookQueryMapper
Client->>Controller: GET /rooms/{roomId}/records/{recordId}/pin (userId)
Controller->>UseCase: pinRecord(query)
UseCase->>Service: delegate
Service->>Validator: validateUserIsRoomMember(roomId, userId)
Service->>RecordPort: getByIdOrThrow(recordId)
RecordPort-->>Service: Record
Service->>Record: validatePin(userId, roomId)
Service->>BookPort: findBookByRoomId(roomId)
BookPort-->>Service: Book
Service->>Mapper: toBookSelectableResult(Book)
Mapper-->>Service: BookSelectableResult
Service-->>Controller: RecordPinResponse.of(...)
Controller-->>Client: 200 OK + BaseResponse
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (29)
✨ 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 (
|
Test Results383 tests 383 ✅ 33s ⏱️ Results for commit 3b7b536. |
#️⃣ 연관된 이슈
📝 작업 내용
📸 스크린샷
💬 리뷰 요구사항
📌 PR 진행 시 이러한 점들을 참고해 주세요
Summary by CodeRabbit