-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 멤버 탈퇴 api 구현 #38
Merged
Merged
Changes from 11 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
14ebcbf
feat: 멤버 탈퇴 api 구현
Sangwook02 a80eae6
feat: 멤버 탈퇴 service 구현
Sangwook02 4df5b10
feat: 멤버 관련 에러 코드 추가
Sangwook02 d331b79
refactor: refresh 토큰 삭제 로직 추가
Sangwook02 edac63e
feat: 쿠키 제거 로직 추가
Sangwook02 2ec68bc
remove: 쿠키 제거 로직 제거
Sangwook02 98598d7
feat: 멤버 softDelete 메서드 추가
Sangwook02 a4cff03
refactor: 어드민 멤버 삭제 softDelete로 변경
Sangwook02 5b37540
fix: 이미 상태가 delete인 경우 예외 처리
Sangwook02 d2df1ef
refactor: soft deleted 회원 로그인 시도 시 예외 처리
Sangwook02 db0adef
refactor: 상태 확인 로직 MemberStatus로 이동
Sangwook02 426f56b
refactor: 조건 수정
Sangwook02 5126fa7
fix: 재가입 가능하도록 수정
Sangwook02 bd60c5b
remove: 사용하지 않는 메서드 제거
Sangwook02 2c67d19
fix: 에러 코드 수정
Sangwook02 22b97d4
fix: 메서드명 수정
Sangwook02 a40be92
remove: 사용하지 않는 의존성 제거
Sangwook02 534cb24
fix: 상태코드 수정
Sangwook02 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,6 +1,9 @@ | ||||||
package com.gdschongik.gdsc.domain.member.domain; | ||||||
|
||||||
import static com.gdschongik.gdsc.global.exception.ErrorCode.*; | ||||||
|
||||||
import com.gdschongik.gdsc.domain.common.model.BaseTimeEntity; | ||||||
import com.gdschongik.gdsc.global.exception.CustomException; | ||||||
import jakarta.persistence.Column; | ||||||
import jakarta.persistence.Entity; | ||||||
import jakarta.persistence.EnumType; | ||||||
|
@@ -86,4 +89,15 @@ public static Member createGuestMember(String oauthId) { | |||||
.status(MemberStatus.NORMAL) | ||||||
.build(); | ||||||
} | ||||||
|
||||||
public void softDelete() { | ||||||
if (this.status.isDeleted()) { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 해당 내용 수정했습니다 |
||||||
throw new CustomException(MEMBER_SOFT_DELETED); | ||||||
} | ||||||
this.status = MemberStatus.DELETED; | ||||||
} | ||||||
|
||||||
public boolean isDeleted() { | ||||||
return this.status.isDeleted(); | ||||||
} | ||||||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
의미를 더 잘 드러낼 수 있는 메서드 이름을 써주면 좋을 것 같습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋은 지적 감사합니다👍