Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
wang.yu committed Oct 11, 2022
1 parent 077318e commit f87da31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions work/third/externalcontact.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,19 +482,19 @@ type WechatChannel struct {

// GetExternalUserDetail 获取外部联系人详情
// @see https://developer.work.weixin.qq.com/document/path/92265
func (r *Client) GetExternalUserDetail(externalUserID string) (*ExternalUser, error) {
func (r *Client) GetExternalUserDetail(externalUserID string) (*ExternalUserDetailResponse, error) {
var (
response []byte
err error
)
if response, err = util.HTTPGet(fmt.Sprintf(FetchExternalContactUserDetailURL, r.AccessToken, externalUserID)); err != nil {
return nil, err
}
var result ExternalUserDetailResponse
result := &ExternalUserDetailResponse{}
if err = util.DecodeWithError(response, &result, "GetExternalUserDetail"); err != nil {
return nil, err
}
return &result.ExternalUser, nil
return result, nil
}

// BatchGetExternalUserDetailsRequest 批量获取外部联系人详情请求
Expand Down

0 comments on commit f87da31

Please sign in to comment.