-
Notifications
You must be signed in to change notification settings - Fork 0
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
[PC-615] 회원 탈퇴 이유 저장 #62
Merged
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f08410c
[PC-615] feat: 유저 탈퇴 이유 엔티티 추가
devchlee12 59069ca
[PC-615] feat: 유저 탈퇴 이유 리포지토리 추가
devchlee12 4bc32a9
[PC-615] feat: 유저 탈퇴 이유 요청 객체 추가
devchlee12 eb2b2bb
[PC-615] feat: 유저 삭제시 이유 저장
devchlee12 fb4f936
[PC-615] feat: 유저 삭제시 body 받도록 서정
devchlee12 040bd9e
[PC-615] refactor: dto 패키지 구조 변경
devchlee12 bf8f23b
[PC-615] feat: 검증 추가
devchlee12 b8e665f
[PC-615] feat: 검증 추가
devchlee12 ac8b5b6
[PC-615] fix: 프로필 심사가 완료되지 않아도 회원 탈퇴가 가능하도록 수정
devchlee12 52f1584
[PC-615] fix: hasRole 대신 hasAuthority 사용하도록 변경
devchlee12 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
8 changes: 8 additions & 0 deletions
8
api/src/main/java/org/yapp/domain/user/dao/UserDeleteReasonRepository.java
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package org.yapp.domain.user.dao; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.yapp.core.domain.user.UserDeleteReason; | ||
|
||
public interface UserDeleteReasonRepository extends JpaRepository<UserDeleteReason, Long> { | ||
|
||
} |
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
13 changes: 13 additions & 0 deletions
13
api/src/main/java/org/yapp/domain/user/presentation/dto/request/UserDeleteRequest.java
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.yapp.domain.user.presentation.dto.request; | ||
|
||
import jakarta.validation.constraints.Size; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@NoArgsConstructor | ||
@Getter | ||
public class UserDeleteRequest { | ||
|
||
@Size(max = 100, message = "탈퇴 이유는 100자 이하여야합니다.") | ||
private String reason; | ||
} |
2 changes: 1 addition & 1 deletion
2
...n/response/UserRejectHistoryResponse.java → ...o/response/UserRejectHistoryResponse.java
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
24 changes: 24 additions & 0 deletions
24
core/domain/src/main/java/org/yapp/core/domain/user/UserDeleteReason.java
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.yapp.core.domain.user; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Table; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Entity | ||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Table(name = "user_delete_reason") | ||
public class UserDeleteReason { | ||
|
||
@Id | ||
@Column(name = "user_id") | ||
private Long id; | ||
|
||
@Column(name = "reason") | ||
private String reason; | ||
} |
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.
그 부분을 생각 못했네요. 수정하겠습니다!