data_mask/define.go

39 lines
846 B
Go
Raw Normal View History

2023-05-23 14:32:26 +08:00
// Package data_mask ...
//
// Description : data_mask ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2023-05-23 14:26
package data_mask
const (
// TypeDefault 默认实现
TypeDefault = "DEFAULT_DATA_MASK"
2023-05-24 14:51:45 +08:00
// TypeMail 邮箱数据脱敏
TypeMail = "MAIL_DATA_MASK"
2023-05-24 15:00:11 +08:00
// TypePhone 手机号脱敏
TypePhone = "PHONE_DATA_MASK"
2023-05-24 15:04:53 +08:00
// TypePassword 密码数据脱敏
TypePassword = "PASSWORD_DATA_MASK"
2023-05-23 14:32:26 +08:00
)
2023-05-25 11:44:26 +08:00
// 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, "密码数据脱敏"},
}
)