rename
This commit is contained in:
parent
a20f8dc7fa
commit
b1919eb898
@ -5,7 +5,7 @@
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2023-05-23 14:26
|
||||
package data_mask
|
||||
package define
|
||||
|
||||
const (
|
||||
// TypeDefault 默认实现
|
@ -5,9 +5,12 @@
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2023-05-24 14:40
|
||||
package data_mask
|
||||
package strategy
|
||||
|
||||
import "strings"
|
||||
import (
|
||||
"git.zhangdeman.cn/zhangdeman/data_mask/define"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// MailDataMask ...
|
||||
//
|
||||
@ -32,5 +35,5 @@ func (m MailDataMask) Mask(input string) string {
|
||||
}
|
||||
|
||||
func (m MailDataMask) Type() string {
|
||||
return TypeMail
|
||||
return define.TypeMail
|
||||
}
|
@ -5,7 +5,7 @@
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2023-05-24 14:47
|
||||
package data_mask
|
||||
package strategy
|
||||
|
||||
import (
|
||||
"fmt"
|
@ -1,11 +1,15 @@
|
||||
// Package data_mask ...
|
||||
// Package strategy ...
|
||||
//
|
||||
// Description : data_mask ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2023-05-24 15:02
|
||||
package data_mask
|
||||
package strategy
|
||||
|
||||
import (
|
||||
"git.zhangdeman.cn/zhangdeman/data_mask/define"
|
||||
)
|
||||
|
||||
// PasswordDataMask 密码数据脱敏
|
||||
//
|
||||
@ -20,5 +24,5 @@ func (p PasswordDataMask) Mask(input string) string {
|
||||
}
|
||||
|
||||
func (p PasswordDataMask) Type() string {
|
||||
return TypePassword
|
||||
return define.TypePassword
|
||||
}
|
@ -1,13 +1,16 @@
|
||||
// Package data_mask ...
|
||||
// Package strategy ...
|
||||
//
|
||||
// Description : data_mask ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2023-05-24 14:52
|
||||
package data_mask
|
||||
package strategy
|
||||
|
||||
import "regexp"
|
||||
import (
|
||||
"git.zhangdeman.cn/zhangdeman/data_mask/define"
|
||||
"regexp"
|
||||
)
|
||||
|
||||
// PhoneDataMask ...
|
||||
//
|
||||
@ -34,5 +37,5 @@ func (p PhoneDataMask) Mask(input string) string {
|
||||
}
|
||||
|
||||
func (p PhoneDataMask) Type() string {
|
||||
return TypePhone
|
||||
return define.TypePhone
|
||||
}
|
@ -5,7 +5,7 @@
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2023-05-24 14:57
|
||||
package data_mask
|
||||
package strategy
|
||||
|
||||
import (
|
||||
"fmt"
|
Loading…
Reference in New Issue
Block a user