You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
699 B
24 lines
699 B
package com.mh.common.annotation; |
|
|
|
import java.lang.annotation.ElementType; |
|
import java.lang.annotation.Retention; |
|
import java.lang.annotation.RetentionPolicy; |
|
import java.lang.annotation.Target; |
|
import com.fasterxml.jackson.annotation.JacksonAnnotationsInside; |
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
|
import com.mh.common.config.serializer.SensitiveJsonSerializer; |
|
import com.mh.common.enums.DesensitizedType; |
|
|
|
/** |
|
* 数据脱敏注解 |
|
* |
|
* @author mh |
|
*/ |
|
@Retention(RetentionPolicy.RUNTIME) |
|
@Target(ElementType.FIELD) |
|
@JacksonAnnotationsInside |
|
@JsonSerialize(using = SensitiveJsonSerializer.class) |
|
public @interface Sensitive |
|
{ |
|
DesensitizedType desensitizedType(); |
|
}
|
|
|