支持注册自定义的数据过滤策略
This commit is contained in:
11
execute.go
11
execute.go
@@ -24,6 +24,17 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
// RegisterStrategy 注册数据脱敏策略
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 22:18 2024/4/7
|
||||
func RegisterStrategy(dataMaskStrategy ...IDataMask) {
|
||||
for _, item := range dataMaskStrategy {
|
||||
maskInstanceTable[item.Type()] = item
|
||||
}
|
||||
}
|
||||
|
||||
// Execute 执行数据脱敏
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
|
||||
Reference in New Issue
Block a user