From a20f8dc7fa88c496bdf66d3aa91a103e7bba03f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Thu, 25 May 2023 11:44:26 +0800 Subject: [PATCH] fix --- define.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/define.go b/define.go index bcff167..c0aece3 100644 --- a/define.go +++ b/define.go @@ -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, "密码数据脱敏"}, + } +)