Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Oauth ¶
Oauth auth
func (*Oauth) GetQrContentTargetURL ¶
GetQrContentTargetURL 构造独立窗口登录二维码
func (*Oauth) GetTargetPrivateURL ¶ added in v2.1.4
GetTargetPrivateURL 获取个人信息授权地址
func (*Oauth) GetTargetURL ¶
GetTargetURL 获取授权地址
func (*Oauth) UserFromCode ¶
func (ctr *Oauth) UserFromCode(code string) (result ResUserInfo, err error)
UserFromCode 根据code获取用户信息
type ResUserInfo ¶
type ResUserInfo struct { util.CommonError // 当用户为企业成员时返回 UserID string `json:"UserId"` DeviceID string `json:"DeviceId"` // 非企业成员授权时返回 OpenID string `json:"OpenId"` ExternalUserID string `json:"external_userid"` }
ResUserInfo 返回得用户信息
Click to show internal directories.
Click to hide internal directories.