fix 修复 脱敏注解标记位置错误

feature/model
疯狂的狮子li 2 years ago
parent cff90251ef
commit d3a1b496fb

@ -61,7 +61,6 @@ public class SysUserBo extends BaseEntity {
/** /**
* *
*/ */
@Sensitive(strategy = SensitiveStrategy.EMAIL)
@Email(message = "邮箱格式不正确") @Email(message = "邮箱格式不正确")
@Size(min = 0, max = 50, message = "邮箱长度不能超过{max}个字符") @Size(min = 0, max = 50, message = "邮箱长度不能超过{max}个字符")
private String email; private String email;
@ -69,7 +68,6 @@ public class SysUserBo extends BaseEntity {
/** /**
* *
*/ */
@Sensitive(strategy = SensitiveStrategy.PHONE)
private String phonenumber; private String phonenumber;
/** /**

@ -2,6 +2,8 @@ package org.dromara.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import org.dromara.common.sensitive.annotation.Sensitive;
import org.dromara.common.sensitive.core.SensitiveStrategy;
import org.dromara.common.translation.annotation.Translation; import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant; import org.dromara.common.translation.constant.TransConstant;
import org.dromara.system.domain.SysUser; import org.dromara.system.domain.SysUser;
@ -59,11 +61,13 @@ public class SysUserVo implements Serializable {
/** /**
* *
*/ */
@Sensitive(strategy = SensitiveStrategy.EMAIL)
private String email; private String email;
/** /**
* *
*/ */
@Sensitive(strategy = SensitiveStrategy.PHONE)
private String phonenumber; private String phonenumber;
/** /**

Loading…
Cancel
Save