[feat] 추천 관광 코스 조회에 addressId과 관광지별 이미지 반환#97
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughCourseComponentDto 레코드에 addressId(Long)와 tourspotImg(String) 필드를 추가하고, 생성자 및 from(CourseComponent, CongestionLevel) 팩토리 메서드를 이 필드들을 포함하도록 수정했습니다. TourSpot에서 addressId를, 첫 번째 이미지에서 tourspotImg URL을 추출해 매핑합니다. Changes
Sequence Diagram(s)sequenceDiagram
participant Service as CourseService
participant Domain as CourseComponent / TourSpot
participant DTO as CourseComponentDto
Service->>Domain: 조회된 CourseComponent와 CongestionLevel
Note over Domain: CourseComponent.tourSpot에서<br/>addressId, 첫 이미지 URL 접근
Domain->>DTO: CourseComponentDto.from(component, level)
activate DTO
DTO-->>Service: DTO(tourSpotName, tourspotId, addressId, tourspotImg, congestionLevel, time, lat, lon)
deactivate DTO
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 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. Comment |
📌 PR 개요
✅ 변경사항
🔍 체크리스트
📎 관련 이슈
Closes #
💬 기타 참고사항
Summary by CodeRabbit