This commit is contained in:
白茶清欢 2023-05-25 11:44:26 +08:00
parent ed1bbd277d
commit a20f8dc7fa

View File

@ -17,3 +17,22 @@ const (
// TypePassword 密码数据脱敏
TypePassword = "PASSWORD_DATA_MASK"
)
// TypeDesc 脱敏类型描述
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 11:34 2023/5/25
type TypeDesc struct {
Type string `json:"type"` // 数据脱敏类型
Desc string `json:"desc"` // 脱敏类型描述
}
var (
TypeList = []TypeDesc{
{TypeDefault, "默认策略"},
{TypeMail, "邮箱数据脱敏"},
{TypePhone, "手机号数据脱敏"},
{TypePassword, "密码数据脱敏"},
}
)