Skip to content

[#9] feat: 문의(Inquiry) API - #16

Merged
Bumnote merged 2 commits into
devfrom
feat/inquiry
Jun 28, 2026
Merged

Bumnote merged 2 commits into
devfrom
feat/inquiry

Conversation

@Bumnote

@Bumnote Bumnote commented Jun 28, 2026

Copy link
Copy Markdown
Member

📄 작업 내용

  • 문의/요청(Support) 화면용 문의 API
    • POST /api/inquiries : 문의 등록(본인, 등록 시 PENDING)
    • GET /api/inquiries : 내 문의 목록(최신순 페이징)
    • GET /api/inquiries/{id} : 내 문의 단건(본인 것만, 타인 404)
  • Inquiry 엔티티(타입/상태/답변) + 정적 팩토리·answer 도메인 메서드
  • 공통 페이징 래퍼 common/response/PageResponse 신설
  • ErrorCode INQUIRY_NOT_FOUND(I001)
  • GlobalExceptionHandler에 HttpMessageNotReadableException 핸들러 추가(잘못된 JSON/미지원 enum → 400)

✅ PR 유형

  • Feature

🧪 테스트 내용

  • 로컬 테스트 완료 (InquiryApiTest 12건 통과, 기존 회귀 없음)
  • API 테스트 완료

🙋🏻 참고 사항

🔗 관련 이슈

resolved: #9

문의/요청 화면(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>
@github-actions

github-actions Bot commented Jun 28, 2026

Copy link
Copy Markdown

Test Results

0 tests   - 38   0 ✅  - 38   0s ⏱️ -15s
0 suites  -  8   0 💤 ± 0 
0 files    -  8   0 ❌ ± 0 

Results for commit c48305b. ± Comparison against base commit 85a4d5c.

♻️ This comment has been updated with latest results.

@Bumnote Bumnote self-assigned this Jun 28, 2026
@Bumnote
Bumnote requested a review from pug9483 June 28, 2026 05:44
@Bumnote
Bumnote merged commit eaf6208 into dev Jun 28, 2026
1 of 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.

[Feature] API 구현

1 participant