All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.emily.infrastructure.sensitive.annotation.JsonSimField Maven / Gradle / Ivy

package com.emily.infrastructure.sensitive.annotation;

import com.emily.infrastructure.sensitive.SensitiveType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 自定义jackson注解,标注在属性上,字段必须是字符串类型
 *
 * @author Emily
 * @since :  Created in 2022/7/19 5:22 下午
 */
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface JsonSimField {
    /**
     * 脱敏类型,见枚举类型{@link SensitiveType}
     *
     * @return 脱敏类型
     */
    SensitiveType value() default SensitiveType.DEFAULT;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy