[#9] feat: 문의(Inquiry) API - #16
Merged
Merged
Conversation
문의/요청 화면(Support)이 사용할 문의 등록·조회 API를 추가한다.
- POST /api/inquiries : 문의 등록(작성자 본인, 등록 시 PENDING)
- GET /api/inquiries : 내 문의 목록(최신순 페이징)
- GET /api/inquiries/{id} : 내 문의 단건(본인 것만, 타인 문의는 404)
- Inquiry 엔티티(타입/상태/답변)와 정적 팩토리 create, 답변용 도메인 메서드 answer 추가
- 공통 페이징 래퍼 common/response/PageResponse 신설(도메인 비종속 위치)
- ErrorCode에 INQUIRY_NOT_FOUND(I001) 추가
- 잘못된 JSON 본문/미지원 enum 값을 400으로 처리하도록 GlobalExceptionHandler에
HttpMessageNotReadableException 핸들러 추가(기존 500 폴백 보완)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
📄 작업 내용
POST /api/inquiries: 문의 등록(본인, 등록 시 PENDING)GET /api/inquiries: 내 문의 목록(최신순 페이징)GET /api/inquiries/{id}: 내 문의 단건(본인 것만, 타인 404)✅ PR 유형
🧪 테스트 내용
🙋🏻 참고 사항
🔗 관련 이슈
resolved: #9