-
Notifications
You must be signed in to change notification settings - Fork 0
[feat] 관광지 조회수 로직 추가 #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough랭킹 조회용 GET /rank 엔드포인트가 추가되고, 서비스/레포지토리 계층에 조회수 기준 상위 10개 관광지 메타 조회 로직이 구현되었습니다. 상세 조회 로직에 조회수 증가가 포함되며, 엔티티에 viewCount 필드와 증가 메서드가 추가되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant C as Client (Landing)
participant Ctrl as TourSpotController
participant Svc as TourSpotService
participant Repo as CustomTourSpotCombineRepository
participant DB as Database
C->>Ctrl: GET /tourspots/rank
Ctrl->>Svc: combineTourSpotByRank()
Svc->>Repo: findMetaByRank()
Repo->>DB: SELECT top 10 by viewCount<br/>LEFT JOIN image, current congestion
DB-->>Repo: List<TourSpotMetaResponse>
Repo-->>Svc: results
Svc-->>Ctrl: results
Ctrl-->>C: 200 OK ApiResponse<List<...>>
sequenceDiagram
autonumber
participant C as Client (Detail)
participant Ctrl as TourSpotController
participant Svc as TourSpotService
participant JPA as JPA/Repository
participant DB as Database
C->>Ctrl: GET /tourspots/{id}
Ctrl->>Svc: combineTourSpotDetail(id)
rect rgba(230,245,255,0.5)
note right of Svc: Transactional
Svc->>JPA: findById(id)
JPA->>DB: SELECT TourSpot
DB-->>JPA: TourSpot
Svc->>Svc: increaseViewCount()
Svc->>JPA: save(updated TourSpot)
end
Svc-->>Ctrl: TourSpotDetailResponse
Ctrl-->>C: 200 OK
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Assessment against linked issues
Assessment against linked issues: Out-of-scope changes(해당 없음) Possibly related PRs
Suggested labels
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 (5)
✨ 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 개요
✅ 변경사항
🔍 체크리스트
📎 관련 이슈
Closes #71
💬 기타 참고사항
Summary by CodeRabbit