Skip to content

feat(course): 거래소별 가격 비교 API 추가 (#111)#112

Merged
ohhalim merged 1 commit into
developfrom
feat/111/source-comparison-api
Jun 30, 2026
Merged

feat(course): 거래소별 가격 비교 API 추가 (#111)#112
ohhalim merged 1 commit into
developfrom
feat/111/source-comparison-api

Conversation

@ohhalim

@ohhalim ohhalim commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • GET /api/v1/courses/source-comparison?limit=10 엔드포인트 추가
  • 동아골프·동부회원권 두 소스 모두 최신가가 있는 종목을 조회
  • 가격 차이(diffAmount, diffRate) 절댓값 내림차순 정렬
  • limit 파라미터로 반환 개수 제어 (최대 50)

Response 예시

[
  {
    "courseId": 1,
    "name": "가평베네스트",
    "region": "경기",
    "courseType": "GOLF",
    "dongaPrice": 85000000,
    "dongbuPrice": 87000000,
    "diffAmount": 2000000,
    "diffRate": 2.35
  }
]

Test plan

  • 두 소스 모두 가격이 있는 종목이 반환되는지 확인
  • diffRate 절댓값 내림차순 정렬 확인
  • limit 파라미터 동작 확인

GET /api/v1/courses/source-comparison?limit=10
동아골프·동부회원권 두 소스 모두 최신가가 있는 종목을 조회해
가격 차이(diffAmount, diffRate) 절댓값 내림차순으로 반환
@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@ohhalim, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 29 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c7ac7125-d6e8-4905-b198-62327d291402

📥 Commits

Reviewing files that changed from the base of the PR and between 751120a and 948edd9.

📒 Files selected for processing (5)
  • src/main/java/com/membershipflow/course/controller/CourseController.java
  • src/main/java/com/membershipflow/course/dto/SourceComparisonItem.java
  • src/main/java/com/membershipflow/course/service/CourseService.java
  • src/main/java/com/membershipflow/price/repository/PriceHistoryRepository.java
  • src/main/java/com/membershipflow/price/service/PriceService.java
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/111/source-comparison-api

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ohhalim ohhalim merged commit 73a7cf0 into develop Jun 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant