Compare commits

..

No commits in common. "f43ca4bbcdeaf3d70b62b3b1c9c0194f8ea9ffc5" and "23b2b783e747dbf0d4feb2576eee4328a212a9f8" have entirely different histories.

2 changed files with 6 additions and 18 deletions

View File

@ -60,12 +60,3 @@ func (e Email) MarshalJSON() ([]byte, error) {
v := fmt.Sprintf("%s***%s", split[0][:1], split[0][len(split[0])-1:])
return []byte(`"` + v + "@" + split[1] + `"`), nil
}
func (usc UnifiedSocialCreditCode) MarshalJSON() ([]byte, error) {
if len(usc) != 18 {
return []byte(`"` + usc + `"`), nil
}
v := fmt.Sprintf("%s**********%s", usc[:4], usc[14:])
return []byte(`"` + v + `"`), nil
}

View File

@ -1,22 +1,19 @@
package ddm
// Mobile 手机号 132****7986
// 手机号 132****7986
type Mobile string
// BankCard 银行卡号 622888******5676
// 银行卡号 622888******5676
type BankCard string
// IDCard 身份证号 1******7
// 身份证号 1******7
type IDCard string
// IDName 姓名 *鸿章
// 姓名 *鸿章
type IDName string
// PassWord 密码 ******
// 密码 ******
type PassWord string
// Email 邮箱 l***w@gmail.com
// 邮箱 l***w@gmail.com
type Email string
// UnifiedSocialCreditCode 统一社会信用代码 9137****73X
type UnifiedSocialCreditCode string