-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
6 changed files
with
71 additions
and
15 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
14 changes: 14 additions & 0 deletions
14
src/main/java/site/billbill/apiserver/api/users/dto/request/WithdrawRequest.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,14 @@ | ||
package site.billbill.apiserver.api.users.dto.request; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
public class WithdrawRequest { | ||
@Schema(description = "탈퇴 사유 코드", type = "array",example = "[\"TOO_EXPENSIVE\", \"ETC\"]") | ||
private List<String> code; | ||
@Schema(description = "탈퇴 사유 상세", example = "detail withdraw reason") | ||
private String detail; | ||
} |
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
30 changes: 30 additions & 0 deletions
30
src/main/java/site/billbill/apiserver/model/user/WithdrawHistJpaEntity.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,30 @@ | ||
package site.billbill.apiserver.model.user; | ||
|
||
import jakarta.persistence.*; | ||
import lombok.*; | ||
import site.billbill.apiserver.common.converter.StringListConverter; | ||
import site.billbill.apiserver.model.BaseTime; | ||
|
||
import java.util.List; | ||
|
||
@Entity | ||
@Table(name = "withdraw_hist") | ||
@Getter | ||
@Setter | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class WithdrawHistJpaEntity extends BaseTime { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "withdraw_seq", nullable = false) | ||
private Long withdrawSeq; | ||
@ManyToOne | ||
@JoinColumn(name = "user_id") | ||
private UserJpaEntity user; | ||
@Convert(converter = StringListConverter.class) | ||
@Column(name = "withdraw_code", nullable = false) | ||
private List<String> withdrawCode; | ||
@Column(name = "detail") | ||
private String detail; | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/site/billbill/apiserver/repository/user/WithdrawHistRepository.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,9 @@ | ||
package site.billbill.apiserver.repository.user; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
import site.billbill.apiserver.model.user.WithdrawHistJpaEntity; | ||
|
||
@Repository | ||
public interface WithdrawHistRepository extends JpaRepository<WithdrawHistJpaEntity, Long> { | ||
} |