Skip to content

Conversation

@cba700
Copy link
Collaborator

@cba700 cba700 commented Jul 17, 2025

🛠️ 작업 내용

  1. 회원 탈퇴 기능 구현
image

User 엔티티에 @SQLRestriction("deleted_at IS NULL") 어노테이션을 붙여서 User와 관계되는(join포함) 모든 도메인의 레포지토리에서 쿼리할때 삭제된 유저인지 검증을 거칩니다.
단, 네이티브 쿼리에서는 동작하지 않는다고 하여 네이티브 쿼리를 사용하는 곳에서는 수동으로 deleted_at IS NULL을 붙여주었습니다.

각 도메인에서 메서드 몇개 정도 테스트 한번씩 진행해주시고 만약 안 돌아가면 알려주세요!!

image

회원 탈퇴를 하게 되면 deletedAt 에 탈퇴 시간을 갖게 됩니다.

✅ PR 유형

  • 새로운 기능 추가
  • CSS 등 사용자 UI 디자인 변경
  • 코드 리팩토링
  • 파일 혹은 폴더명 수정

✅ Check List

  • 코드가 정상적으로 컴파일되나요?
  • 테스트 코드를 통과했나요?
  • merge할 브랜치의 위치를 확인했나요?
  • Label을 지정했나요?

🔗 관련 이슈

💬 기타 참고 사항

@cba700 cba700 requested review from ense333 and iamjieunkim July 17, 2025 06:40
@cba700 cba700 self-assigned this Jul 17, 2025
@cba700 cba700 added the feat feature label Jul 17, 2025
@cba700 cba700 linked an issue Jul 17, 2025 that may be closed by this pull request
1 task
@cba700 cba700 closed this Jul 17, 2025
@cba700 cba700 reopened this Jul 27, 2025
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 기능 참고하겠습니다!

Copy link
Collaborator

@ense333 ense333 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다!

Copy link
Collaborator

@iamjieunkim iamjieunkim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다~!!확인했습니다

…al-project/WEB5_7_3star_BE into feat/#100/user-delete

# Conflicts:
#	src/main/java/com/threestar/trainus/domain/user/controller/UserController.java
#	src/main/java/com/threestar/trainus/domain/user/service/UserService.java
@cba700 cba700 merged commit 12f7f9d into develop Jul 28, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 회원탈퇴

4 participants