更新用户信息解密
This commit is contained in:
@@ -15,3 +15,15 @@ type UserData struct {
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type Watermark struct {
|
||||
Timestamp int64 `json:"timestamp"` // 时间戳,用于验证数据时效性
|
||||
AppID string `json:"appid"` // 小程序AppID,用于验证数据来源
|
||||
}
|
||||
|
||||
type WxPhoneInfo struct {
|
||||
PhoneNumber string `json:"phoneNumber"` // 手机号
|
||||
PurePhoneNumber string `json:"purePhoneNumber"` // 不带地区码的手机号(如8613800138000 → 13800138000)
|
||||
CountryCode string `json:"countryCode"` // 国家码(如86)
|
||||
Watermark Watermark `json:"watermark"` // 水印(验证有效性)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user