测试用户
2023-04-13 43393f2bb11cbf9e6af40077bbc5284660e8a754
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.common.annotation;
 
 
import com.common.core.domain.DesensitiveType;
 
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
 
/**
 * @description: 脱敏字段注解
 * @author: holden
 * @time: 2022-01-20 11:46
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface DesensitiveInfo {
 
    DesensitiveType value() default DesensitiveType.BASIC;
 
    String separator() default "";
 
    String padStr() default "*";
 
    int retainLeft() default -1;
    int retainRight() default  -1;
 
}