Versions in this module Expand all Collapse all v1 v1.0.2 Sep 25, 2022 Changes in this version + const ScopeSnsBase + const ScopeSnsInfo + func Run() + type AccessToken interface + func NewAccessToken() AccessToken + type Authorize interface + SnsAccessToken func(code string) (AuthorizeDTO, error) + SnsApiBase func(redirectUri, state string) (string, error) + SnsApiUserInfo func(redirectUri, state string) (string, error) + SnsAuthAccessToken func() error + SnsRefreshToken func() (AuthorizeDTO, error) + SnsUserInfo func() (UserInfoDTO, error) + func NewAuthorize() Authorize + type AuthorizeDTO struct + AccessToken string + ExpiresIn int + Openid string + RefreshToken string + Scope string + type JsSdkDTO struct + AppId string + Noncestr string + Signature string + Timestamp string + type JsapiTicket interface + GetJsSdk func(url string) JsSdkDTO + func NewJsapiTicket() JsapiTicket + type UserInfoDTO struct + City string + Country string + Headimgurl string + Nickname string + Openid string + Privilege []string + Province string + Sex int + Unionid string v1.0.1 Jul 17, 2021