-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #201 from gunsight1/feature_add_withdraw_member_hi…
…story feature :: 회원 탈퇴, 탈퇴 이력 추가
- Loading branch information
Showing
6 changed files
with
80 additions
and
7 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
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
49 changes: 49 additions & 0 deletions
49
module-domain/src/main/java/com/kernel360/member/entity/WithrawMember.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,49 @@ | ||
package com.kernel360.member.entity; | ||
|
||
import com.kernel360.base.BaseEntity; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Table; | ||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@Entity | ||
@Table(name = "withraw_member") | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class WithrawMember extends BaseEntity { | ||
|
||
@Id | ||
@Column(name = "member_no", nullable = false) | ||
private Long memberNo; | ||
|
||
@Column(name = "id", nullable = false, updatable = false) | ||
private String id; | ||
|
||
@Column(name = "email", nullable = false) | ||
private String email; | ||
|
||
@Column(name="ip") | ||
private String ip; | ||
|
||
|
||
public static WithrawMember of(Long memberNo, String id, String email, String ip) { | ||
|
||
return new WithrawMember(memberNo, id, email, ip); | ||
} | ||
|
||
private WithrawMember( | ||
Long memberNo, | ||
String id, | ||
String email, | ||
String ip | ||
) { | ||
this.memberNo = memberNo; | ||
this.id = id; | ||
this.email = email; | ||
this.ip = ip; | ||
} | ||
|
||
} |
4 changes: 0 additions & 4 deletions
4
module-domain/src/main/java/com/kernel360/member/repository/DeletedMemberRepository.java
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
module-domain/src/main/java/com/kernel360/member/repository/WithrawMemberRepository.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 com.kernel360.member.repository; | ||
|
||
import com.kernel360.member.entity.WithrawMember; | ||
import jakarta.persistence.Id; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface WithrawMemberRepository extends JpaRepository<WithrawMember, Id> { | ||
} |