wx_api_data.go 736 Bytes
Newer Older
haoyanbin's avatar
1  
haoyanbin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
package utils

type WxLoginReq struct {
	LoginType     string `json:"login_type"`     //Phone:手机登录 WeChat:微信登录
	EncryptedDate string `json:"encrypted_date"` //小程序通过 api 得到的加密数据
	Iv            string `json:"iv"`             //小程序通过 api 得到的初始向量
	WxCode        string `json:"wx_code"`        //微信code
	Code          string `json:"code"`           //验证码
	Phone         string `json:"phone"`          //手机号
}

type WxLoginReply struct {
	OpenID     string `json:"openid"`
	SessionKey string `json:"session_key"`
	// 用户在开放平台的唯一标识符 只在关注公众号的前提下
	UnionID string `json:"unionid"`
	Mobile  string `json:"mobile"`
}