Repository navigation
refactor: 패키지 구조 통일 및 소개 페이지 DB 전환 - #64
Merged
Merged
Conversation
7 tasks done
…cture-and-introduction
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.
📌 작업 개요
관련 이슈
작업 배경 및 목적
도메인별로 혼재되어 있던 패키지 구조를 일관된 레이어 구조로 정리했습니다.
또한 소개 데이터가 없는 경우 어드민에서 최초 등록할 수 없었던 문제를 해결하고, 프론트엔드의 소개 페이지 하드코딩 데이터를 DB 기반으로 전환할 수 있도록 API와 운영 절차를 정리했습니다.
🛠️ 주요 변경 사항
controller,service,repository,entity기준으로 정리PUT /admin/introductions를 소개 정보 등록·수정용 upsert API로 변경POST /admin/introductions제거✅ 완료 조건
🧪 테스트 및 검증 결과
./gradlew testGET /api/introductionsMockMvc 테스트PUT /admin/introductionsMockMvc 테스트GET /api/introductions호출테스트 환경
테스트 증빙
미검증 항목
current_cardinal운영 데이터 변경위 항목은 배포 후 기획·PM·프론트엔드와 실제 데이터를 확정한 뒤 진행해야 합니다.
🔍 리뷰 요청 사항
PUTupsert 방식이 적절한지 확인 부탁드립니다.EntityNotFoundException을 공통 HTTP 404 응답으로 처리하는 방식이 적절한지 확인 부탁드립니다.Contact엔티티는 현재 repository/service/API가 없어 이번 소개 API 전환 범위에서 제외했습니다. 소개 API에 포함할지 별도 API로 분리할지 논의가 필요합니다.current_cardinal변경이 필요합니다.POST /admin/introductions제거PUT /admin/introductions가 최초 등록과 수정을 모두 처리spring-boot-starter-validation의존성이 추가되어 기존@Valid검증도 정상적으로 동작합니다.bannerCardinal과 회원 역할 판별용current_cardinal은 별도 값입니다.docs/introduction-data-transition.md를 참고해 주세요.☑️ PR 체크리스트