Conversation
* feat: Member에 restoreDeletedAt 메서드 추가 * feat: MemberErrorCode에 MEMBER_NOT_DELETED 에러 코드 추가 * feat: MemberPolicy에 validateDeleted 메서드 추가 * feat: MemberQueryService에 getDeletedMember 메서드 추가 * feat: MemberCommandService에 restoreMember 메서드 추가 * feat: MemberFacade에 restoreMember 메서드 추가 * feat: MemberController에 restoreMember 메서드 추가 * test: MemberQueryServiceTest에 GetDeletedMember 단위 테스트 추가 * test: MemberCommandServiceTest에 RestoreMember 단위 테스트 추가 * test: MemberControllerIntegrationTest에 RestoreMember 통합 테스트 추가 * chore: UrlConstants에 멤버 복구 API 접근 허용 경로 추가
hisonghy
approved these changes
Dec 21, 2025
Contributor
hisonghy
left a comment
There was a problem hiding this comment.
고생하셨습니다!
테스트하는데 있어 더 편리해졌네요!
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.
📌 작업 내용 및 특이사항
✅ 멤버 복구 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통합 테스트 추가🌱 관련 이슈
🔍 참고사항(선택)
📚 기타(선택)