fix: return kyc status in user
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
package org.wfc.user.api.domain;
|
||||
|
||||
import org.wfc.common.core.web.domain.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
|
||||
public class UKyc extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Long kycId;
|
||||
|
||||
private Long userId;
|
||||
|
||||
private String realName;
|
||||
|
||||
private String birthDate;
|
||||
|
||||
private Integer idType;
|
||||
|
||||
private String idFile;
|
||||
|
||||
private String identifyPicture;
|
||||
|
||||
private Integer status;
|
||||
|
||||
private String description;
|
||||
|
||||
// @Schema(description = "Create Time")
|
||||
// private LocalDateTime createTime;
|
||||
|
||||
// @Schema(description = "Update Time")
|
||||
// private LocalDateTime updateTime;
|
||||
}
|
||||
@@ -101,6 +101,10 @@ public class UUser extends BaseEntity
|
||||
/** 角色ID */
|
||||
private Long roleId;
|
||||
|
||||
/** User KYC Info */
|
||||
@Excel(name = "KYC Status",readConverterExp = "1=VERIFIED,2=UNVERIFIED,3=PENDING,4=REJECTED", type = Type.EXPORT)
|
||||
private String kycStatus;
|
||||
|
||||
public UUser()
|
||||
{
|
||||
|
||||
@@ -332,6 +336,15 @@ public class UUser extends BaseEntity
|
||||
{
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public String getKycStatus() {
|
||||
return kycStatus;
|
||||
}
|
||||
|
||||
public void setKycStatus(String kycStatus) {
|
||||
this.kycStatus = kycStatus;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
@@ -354,6 +367,7 @@ public class UUser extends BaseEntity
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.append("dept", getDept())
|
||||
.append("kycStatus", getKycStatus())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user