-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0216e88
commit e15d4f5
Showing
5 changed files
with
47 additions
and
4 deletions.
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
27 changes: 27 additions & 0 deletions
27
...c/main/java/middle_point_search/backend/domains/member/domain/MemberWithdrawalReason.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,27 @@ | ||
package middle_point_search.backend.domains.member.domain; | ||
|
||
import static jakarta.persistence.GenerationType.*; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.Id; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Entity | ||
@Getter | ||
@NoArgsConstructor | ||
public class MemberWithdrawalReason { | ||
|
||
@Id | ||
@Column(name = "member_withdrawal_reason_id") | ||
@GeneratedValue(strategy = IDENTITY) | ||
private Long id; | ||
|
||
private String reason; | ||
|
||
public MemberWithdrawalReason(String reason) { | ||
this.reason = reason; | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
...main/java/middle_point_search/backend/domains/member/dto/request/DeleteMemberRequest.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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
package middle_point_search.backend.domains.member.dto.request; | ||
|
||
public record DeleteMemberRequest( | ||
String accessToken | ||
String accessToken, | ||
String withdrawalReason | ||
) { | ||
} | ||
|
8 changes: 8 additions & 0 deletions
8
...ddle_point_search/backend/domains/member/repository/MemberWithdrawalReasonRepository.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 middle_point_search.backend.domains.member.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import middle_point_search.backend.domains.member.domain.MemberWithdrawalReason; | ||
|
||
public interface MemberWithdrawalReasonRepository extends JpaRepository<MemberWithdrawalReason, 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