From 75fd8a02c058f6a51e3c5ea36d997c157c070793 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期三, 24 十一月 2021 16:02:32 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- pamapi/src/main/java/com/pollex/pam/domain/Customer.java | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/domain/Customer.java b/pamapi/src/main/java/com/pollex/pam/domain/Customer.java index 225fba6..580dea9 100644 --- a/pamapi/src/main/java/com/pollex/pam/domain/Customer.java +++ b/pamapi/src/main/java/com/pollex/pam/domain/Customer.java @@ -5,6 +5,8 @@ import javax.persistence.Column; import javax.persistence.Entity; +import javax.persistence.EnumType; +import javax.persistence.Enumerated; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @@ -14,6 +16,7 @@ import org.springframework.data.annotation.LastModifiedDate; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.pollex.pam.enums.OtpLoginTypeEnum; @Entity @Table(name = "customer") @@ -37,6 +40,10 @@ @Column(name = "email") private String email; + + @Enumerated(value = EnumType.STRING) + @Column(name = "contact_type") + private OtpLoginTypeEnum contactType; @CreatedDate @Column(name = "created_date", updatable = false) @@ -95,6 +102,14 @@ public void setLastModifiedDate(Instant lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } + + public OtpLoginTypeEnum getContactType() { + return contactType; + } + + public void setContactType(OtpLoginTypeEnum contactType) { + this.contactType = contactType; + } -- Gitblit v1.8.0