Conversation
사용자 차단, 차단 사용자 목록 조회, 사용자 차단 해제 API 스웨거 문서화
양방향(내가 차단한 경우 + 나를 차단한 경우) 모두 포함
Collaborator
|
LGTM! |
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.
📝 요약(Summary)
사용자 차단 기능을
moderation도메인에 추가하고, 차단 관계가 친구 및 검색 기능에 즉시 반영되도록 연동했습니다.또한 차단 상태에서 친구 요청 수락/거절이 진행되지 않도록 예외 처리까지 포함했습니다.
user_blocks테이블 마이그레이션 추가UserBlock엔티티 및 레포지토리 추가차단 API/서비스 추가
차단 시에 기존 친구 관계가 즉시 삭제됩니다(
friendshipRepository.deleteByUserIds).에러 코드 추가
MODERATION_CANNOT_BLOCK_SELFMODERATION_ALREADY_BLOCKEDMODERATION_BLOCK_NOT_FOUNDMODERATION_BLOCK_RELATIONSHIP_EXISTS🔗 Related Issue
💬 공유사항
✅ PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.