This commit is contained in:
邹宗楠
2022-07-28 16:52:48 +08:00
parent 8062dff677
commit 76efd9ca73
2 changed files with 14 additions and 2 deletions

View File

@@ -33,3 +33,16 @@ type WxLoginReq struct {
Phone string `json:"phone" form:"phone"` // 微信和电话登录使用
Password string `json:"password" form:"password"` // 密码登录
}
// 微信小程序解密后 用户手机号结构体
type UserPhone struct {
PhoneNumber string `json:"phoneNumber,omitempty"`
PurePhoneNumber string `json:"purePhoneNumber,omitempty"`
CountryCode string `json:"countryCode,omitempty"`
Watermark *watermarkInfo `json:"watermark,omitempty"`
}
type watermarkInfo struct {
Appid string `json:"appid,omitempty"`
Timestamp int `json:"timestamp,omitempty"`
}