企业微信 OAuth2:支持获取 ExternalUserID (#565)

This commit is contained in:
Bryan authored and GitHub committed 2022-04-29 21:40:27 +08:00
1 parent 3cbc95732a
commit 890e9fed43
1 file changed
+1
+1
View File
@@ -62,6 +62,7 @@ type ResUserInfo struct {
DeviceID string `json:"DeviceId"` DeviceID string `json:"DeviceId"`
// 非企业成员授权时返回 // 非企业成员授权时返回
OpenID string `json:"OpenId"` OpenID string `json:"OpenId"`
ExternalUserID string `json:"external_userid"`
} }
// UserFromCode 根据code获取用户信息 // UserFromCode 根据code获取用户信息