Versions in this module Expand all Collapse all v0 v0.4.10 May 29, 2024 v0.4.9 May 29, 2024 Changes in this version + var APIURL = `https://api.weixin.qq.com/sns/jscode2session` + type Response struct + ErrCode int64 + ErrMsg string + ExpiresIn int64 + OpenID string + SessionKey string + UnionID string + func (result *Response) AsUser(post *WechatPostData) *goth.User + type WechatAuthResult struct + AccessToken string + Code string + ExpiresIn int64 + OpenID string + RefreshToken string + Scope string + UnionID string + type WechatPostData struct + AuthResult *WechatAuthResult + UserInfo *WechatUserInfo + func NewWechatPostData() *WechatPostData + func (post *WechatPostData) Check(ctx echo.Context) error + func (post *WechatPostData) Post(ctx echo.Context, appID string, appSecret string) (*Response, error) + type WechatUserInfo struct + AvatarURL string + City string + Country string + Gender string + NickName string + OpenID string + Province string + UnionID string + func (u *WechatUserInfo) Location() string