feat: 코스발견 탭 상단 배너 조회 API 추가 (prod) - #210
Merged
Merged
Conversation
Banner 엔티티/Repository/Service/Controller 추가, GET /api/banner로 활성 배너를 sortOrder 순으로 반환. Android 연동은 후속 작업.
sortOrder에 유니크 제약이 없어 값이 같은 배너가 있으면 정렬 순서가 요청마다 달라질 수 있어, id ASC를 보조 키로 붙여 결정론적으로 정렬되도록 함.
unam98
requested review from
RinRinPARK,
YuSuhwa-ve and
funnysunny08
as code owners
August 3, 2026 06:53
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
배경
#209 (dev 반영 완료)의 배너 조회 API를 prod에도 반영. dev 브랜치 전체를 머지하면 배너와 무관한 대규모 인프라 변경(Grafana/Prometheus/ELK, deploy.sh 재작성 등, 아직 미검증)이 함께 나가므로, 배너 API 커밋만 별도로 cherry-pick해서 올림.
변경 사항
#209와 동일:
Banner엔티티,BannerRepository,GetBannerResponseDto/BannerResponse,BannerService,BannerControllerGET /api/banner— 활성 배너를 sortOrder(동률 시 id) 순으로 반환SuccessStatus.GET_BANNER_SUCCESS추가영향 범위
신규 도메인 추가로 기존 API/로직에는 영향 없음. 인증 불필요한 공개 엔드포인트. main 대상 배포이므로 병합 시 prod EC2에 실제 배포됨.
검증
./gradlew compileJava성공 확인