feat: 이벤트 진행 상점 수 조회 API 추가#2273
Conversation
- 주변상점 이벤트 영역에서 진행 중인 이벤트를 가진 상점 수를 별도로 조회할 수 있도록 엔드포인트를 추가 - 같은 상점에 진행 중인 이벤트가 여러 개 있어도 상점 기준으로 한 번만 집계하도록 DISTINCT count 쿼리를 사용 - 현재 날짜 기준 진행 중 이벤트만 포함되도록 수락 테스트로 중복 집계와 기간 제외 동작을 검증
|
Warning Review limit reached
More reviews will be available in 32 minutes and 27 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
- 신규 이벤트 상점 개수 조회 API의 Swagger 응답 정의를 공통 ApiResponseCodes 형식으로 맞췄습니다. - 실제 구현이 성공 응답만 반환하므로 불필요한 401/403/404 응답 선언을 제거했습니다.
🔍 개요
🚀 주요 변경 내용
GET /shops/events/countAPI를 추가했습니다.startDate <= today <= endDate인 이벤트만 집계합니다.COUNT(DISTINCT shop)쿼리를 사용했습니다.💬 참고 사항
./gradlew test --tests 'in.koreatech.koin.acceptance.domain.ShopApiTest' --rerun-tasksBUILD SUCCESSFUL,5 actionable tasks: 5 executed✅ Checklist (완료 조건)