feat: 멤버 복구 API 추가(#123) #124
Merged
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.
📌 작업 내용 및 특이사항
✅ 멤버 복구 API 추가
memberId를 통해 삭제된 사용자의 계정을 복구합니다.MemberQueryService.getDeletedMember()를 통해 삭제된 멤버를 조회합니다.Member.restoreDeletedAt()를 통해 deletedAt 필드를 null로 업데이트합니다.✅ 삭제된 멤버 검증 로직 추가
MemberQueryService.getDeletedMember()에 삭제 검증 로직을 추가했습니다.MemberErrorCode에MEMBER_NOT_DELETED에러 코드를 추가했습니다.MemberPolicy에validateDeleted메서드를 추가하여, 삭제된 멤버가 아니라면 예외가 발생하도록 구현했습니다.✅ 접근 허용 경로 추가
UrlConstants에멤버 복구 API(/api/members/me/restore/**)경로 추가✅ 테스트
MemberQueryServiceTest에GetDeletedMember단위 테스트 추가MemberCommandServiceTest에RestoreMember단위 테스트 추가MemberControllerIntegrationTest에RestoreMember통합 테스트 추가🌱 관련 이슈
🔍 참고사항(선택)
📚 기타(선택)