This commit is contained in:
2025-12-11 18:30:35 +08:00
parent 99937e9feb
commit 8b211fbad6
35 changed files with 527 additions and 302 deletions

View File

@@ -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>

View File

@@ -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);
}
}