generated from DDINGJOO/TEAMBIND_REPO_SETTUP
-
Notifications
You must be signed in to change notification settings - Fork 1
HOTFIX #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
HOTFIX #42
Conversation
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
SupportServer/src/main/java/com/teambind/supportserver/inquiries/entity/Inquiry.java: 문의 엔티티 추가 (제목, 내용, 카테고리, 상태, 작성자, 첨부파일) SupportServer/src/main/java/com/teambind/supportserver/inquiries/entity/Answer.java: 답변 엔티티 추가 (1:1 관계, 작성자, 내용) SupportServer/src/main/java/com/teambind/supportserver/inquiries/entity/InquiryFile.java: 첨부파일 임베디드 타입 (이미지 서버 요구사항 반영) SupportServer/src/main/java/com/teambind/supportserver/inquiries/entity/InquiryCategory.java: 문의 카테고리 Enum (결제, 예약, 체크인/체크아웃, 리뷰 신고, 기타, 전체) SupportServer/src/main/java/com/teambind/supportserver/inquiries/entity/InquiryStatus.java: 문의 상태 Enum (미확인, 답변완료, 확인완료) SupportServer/src/main/java/com/teambind/supportserver/inquiries/repository/InquiryRepository.java: 문의 조회 메서드 (작성자, 카테고리, 상태별) SupportServer/src/main/java/com/teambind/supportserver/inquiries/repository/AnswerRepository.java: 답변 조회 메서드 (문의ID, 작성자 존재 확인) SupportServer/src/test/java/com/teambind/supportserver/inquiries/entity/InquiryEntityTest.java: Inquiry 엔티티 테스트 8개 추가 SupportServer/src/test/java/com/teambind/supportserver/inquiries/entity/AnswerEntityTest.java: Answer 엔티티 테스트 5개 추가 SupportServer/src/test/java/com/teambind/supportserver/inquiries/repository/InquiryRepositoryTest.java: InquiryRepository 통합 테스트 13개 추가 SupportServer/src/test/java/com/teambind/supportserver/inquiries/repository/AnswerRepositoryTest.java: AnswerRepository 통합 테스트 14개 추가 참고: JPA 엔티티 설계 및 기본 CRUD 리포지토리 구현
SupportServer/src/main/java/com/teambind/supportserver/inquiries/exceptions/ErrorCode.java: 문의 도메인 에러 코드 Enum (문의 미존재, 답변 미존재, 권한 없음, 이미 답변됨, 파일 개수 초과) SupportServer/src/main/java/com/teambind/supportserver/inquiries/exceptions/InquiryException.java: 문의 비즈니스 예외 클래스 참고: 문의 도메인 전용 예외 처리 체계 구축
SupportServer/src/main/java/com/teambind/supportserver/inquiries/dto/request/InquiryCreateRequest.java: 문의 생성 요청 DTO (제목, 내용, 카테고리, 작성자ID, 첨부파일 목록, 유효성 검사) SupportServer/src/main/java/com/teambind/supportserver/inquiries/dto/request/AnswerCreateRequest.java: 답변 생성 요청 DTO (답변 내용, 작성자ID, 유효성 검사) 참고: @notblank, @NotNull, @SiZe 애노테이션으로 입력값 검증
SupportServer/src/main/java/com/teambind/supportserver/inquiries/dto/response/InquiryResponse.java: 문의 조회 응답 DTO (문의 정보, 답변 정보, 첨부파일, 엔티티 변환 메서드) SupportServer/src/main/java/com/teambind/supportserver/inquiries/dto/response/AnswerResponse.java: 답변 조회 응답 DTO (답변 내용, 작성자ID, 생성일시) 참고: 엔티티를 클라이언트 친화적인 형태로 변환
SupportServer/src/main/java/com/teambind/supportserver/inquiries/service/InquiryService.java: 문의 비즈니스 로직 인터페이스 (문의 생성, 조회, 답변 작성, 확인 처리, 작성자별 조회) 참고: 비즈니스 계층 추상화 및 구현체 분리
SupportServer/src/main/java/com/teambind/supportserver/inquiries/service/InquiryServiceImpl.java: 문의 비즈니스 로직 구현 (문의 생성, 단건 조회, 목록 조회, 답변 작성, 확인 처리, 트랜잭션 관리) 참고: Repository 계층과 연동하여 비즈니스 규칙 적용
SupportServer/src/main/java/com/teambind/supportserver/inquiries/controller/InquiryController.java: 문의 관리 REST API 추가
- POST /api/v1/inquiries: 문의 등록
- GET /api/v1/inquiries/{inquiryId}: 문의 상세 조회
- GET /api/v1/inquiries: 작성자별 문의 목록 조회
- GET /api/v1/inquiries/category/{category}: 카테고리별 문의 목록 조회
- POST /api/v1/inquiries/{inquiryId}/answers: 답변 등록
- PATCH /api/v1/inquiries/{inquiryId}/confirm: 문의 확인 처리
참고: RESTful 원칙에 따라 리소스 중심 URL 설계
# Conflicts: # SupportServer/src/test/java/com/teambind/supportserver/inquiries/repository/AnswerRepositoryTest.java # SupportServer/src/test/java/com/teambind/supportserver/inquiries/repository/InquiryRepositoryTest.java
SupportServer/src/main/java/com/teambind/supportserver/inquiries/service/InquiryServiceImpl.java: UUID에서 IdGenerator 활용으로 ID 생성 로직 리팩터링 SupportServer/src/test/java/com/teambind/supportserver/inquiries/repository/InquiryRepositoryTest.java: QueryDslConfig import 경로 수정 (공통 경로 사용) SupportServer/src/test/java/com/teambind/supportserver/inquiries/repository/AnswerRepositoryTest.java: QueryDslConfig import 경로 수정 (공통 경로 사용)
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.
누락파일 업로드