Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WxAuthCode2Session ¶
type WxAuthCode2Session struct { Openid string `json:"openid"` //用户唯一标识 SessionKey string `json:"session_key"` //会话密钥 Uinionid string `json:"uinionid"` //用户在开放平台的唯一标识符,在满足 UnionID 下发条件的情况下会返回,详见 UnionID 机制说明。 Errcode int32 `json:"errcode"` //错误码 ErrMsg string `json:"errmsg"` //错误信息 }
func WeChatLogin ¶
func WeChatLogin(wxAppId, wxAppSecret, jsCode string) (wxToken *WxAuthCode2Session, err error)
Click to show internal directories.
Click to hide internal directories.