gateway
This commit is contained in:
@@ -30,6 +30,11 @@
|
||||
<artifactId>lombok</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.xyzh.common</groupId>
|
||||
<artifactId>common-utils</artifactId>
|
||||
<version>${urban-lifeline.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -3,6 +3,10 @@ package org.xyzh.common.dto.sys;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.xyzh.common.dto.BaseDTO;
|
||||
import org.xyzh.common.utils.crypto.AesEncryptUtil;
|
||||
import org.xyzh.common.utils.crypto.EncryptedStringTypeHandler;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
/**
|
||||
@@ -29,6 +33,7 @@ public class TbSysUserDTO extends BaseDTO {
|
||||
@Schema(description = "邮箱")
|
||||
private String email;
|
||||
|
||||
@TableField(typeHandler = EncryptedStringTypeHandler.class)
|
||||
@Schema(description = "手机(加密)")
|
||||
private String phone;
|
||||
|
||||
@@ -41,7 +46,10 @@ public class TbSysUserDTO extends BaseDTO {
|
||||
@Schema(description = "用户状态")
|
||||
private String status;
|
||||
|
||||
@Schema(description = "用户类型")
|
||||
private String userType;
|
||||
|
||||
public void setPhone(String phone){
|
||||
this.phone = phone;
|
||||
this.phoneHash = AesEncryptUtil.maskPhone(phone);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user