Repository navigation
feat: 마이페이지 및 OB 멘토링 관리 API 구현(#53) - #56
Merged
Merged
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
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.
관련 이슈
작업 내용
상세 변경 사항
MypageController,MypageService에 YB/OB 마이페이지 관련 API를 확장했습니다.GET /api/mypage추가GET /api/mypage/applications/{applicationId}/rejection-reason추가POST /api/mypage/reviews추가GET /api/mypage/ob/profile추가PUT /api/mypage/ob/profile추가PUT /api/mypage/ob/profile/visibility추가GET /api/mypage/ob/schedule추가PUT /api/mypage/ob/schedule추가GET /api/mypage/ob/requests추가POST /api/mypage/ob/requests/{applicationId}/approve추가POST /api/mypage/ob/requests/{applicationId}/reject추가GET /api/mypage/ob/reviews추가MentoringApplication,MentoringReview,Mentor,MentoringSlot엔티티에 마이페이지 요구사항 대응 필드를 반영했습니다.MentoringApplicationRepository,MentoringReviewRepository,MentoringSlotRepository조회 메서드를 확장했습니다.구현 포인트
PENDING,ACTIVE,COMPLETED/REJECTED로 분리해 응답하도록 구성했습니다.application_id로 1:1 연결해 중복 작성이 불가능하도록 보장했습니다.@EntityGraph를 적용해 마이페이지 조회, OB 요청 목록 조회, 후기 조회 시 필요한 연관 엔티티를 함께 로딩하도록 구성했습니다.ACTIVE로 변경하도록 구현했습니다.테스트
./gradlew compileJava성공 확인참고 사항