1
This commit is contained in:
@@ -21,11 +21,7 @@ const (
|
||||
|
||||
// WeChatPhoneNumberParam 微信登陆
|
||||
type WeChatPhoneNumberParam struct {
|
||||
EncryptedData string `json:"encrypted_data" form:"encrypted_data" binding:"required"` // 加密信息
|
||||
IV string `json:"iv" form:"iv" binding:"required"` // 加密算法初始量
|
||||
NickName string `json:"nick_name" form:"nick_name" binding:"required"` // 昵称
|
||||
HeadUrl string `json:"head_url" form:"head_url" binding:"required"` //头像图片地址
|
||||
Code string `json:"code" form:"code" binding:"required"` //code
|
||||
Code string `json:"code" form:"code" binding:"required"` //code
|
||||
}
|
||||
|
||||
type WxLoginReq struct {
|
||||
@@ -33,16 +29,3 @@ 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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user