Compare commits
No commits in common. "f43ca4bbcdeaf3d70b62b3b1c9c0194f8ea9ffc5" and "23b2b783e747dbf0d4feb2576eee4328a212a9f8" have entirely different histories.
f43ca4bbcd
...
23b2b783e7
@ -60,12 +60,3 @@ func (e Email) MarshalJSON() ([]byte, error) {
|
|||||||
v := fmt.Sprintf("%s***%s", split[0][:1], split[0][len(split[0])-1:])
|
v := fmt.Sprintf("%s***%s", split[0][:1], split[0][len(split[0])-1:])
|
||||||
return []byte(`"` + v + "@" + split[1] + `"`), nil
|
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
|
|
||||||
}
|
|
||||||
|
@ -1,22 +1,19 @@
|
|||||||
package ddm
|
package ddm
|
||||||
|
|
||||||
// Mobile 手机号 132****7986
|
// 手机号 132****7986
|
||||||
type Mobile string
|
type Mobile string
|
||||||
|
|
||||||
// BankCard 银行卡号 622888******5676
|
// 银行卡号 622888******5676
|
||||||
type BankCard string
|
type BankCard string
|
||||||
|
|
||||||
// IDCard 身份证号 1******7
|
// 身份证号 1******7
|
||||||
type IDCard string
|
type IDCard string
|
||||||
|
|
||||||
// IDName 姓名 *鸿章
|
// 姓名 *鸿章
|
||||||
type IDName string
|
type IDName string
|
||||||
|
|
||||||
// PassWord 密码 ******
|
// 密码 ******
|
||||||
type PassWord string
|
type PassWord string
|
||||||
|
|
||||||
// Email 邮箱 l***w@gmail.com
|
// 邮箱 l***w@gmail.com
|
||||||
type Email string
|
type Email string
|
||||||
|
|
||||||
// UnifiedSocialCreditCode 统一社会信用代码 9137****73X
|
|
||||||
type UnifiedSocialCreditCode string
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user