更新用户信息解密

This commit is contained in:
2025-08-11 00:45:06 +08:00
parent d490ecb405
commit ba655a6aba
2 changed files with 99 additions and 8 deletions

View File

@@ -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"` // 水印(验证有效性)
}