Files
toutoukan/model/usermodel/userdata.go
2025-08-11 00:45:06 +08:00

30 lines
840 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package usermodel
import "time"
type UserData struct {
Uid string
Username string
Password string
Email string
Telephone string
Avatar_url string
Gender string
Bio string
Birth_date time.Time
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"` // 水印(验证有效性)
}