1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-12 00:32:26 +08:00

企业微信-移除可省略的错误判断 (#734)

Co-authored-by: markwang <www.wang61@qq.com>
This commit is contained in:
markwang
2023-10-10 19:31:23 +08:00
committed by GitHub
parent da5067bcb2
commit 3f1c5e7637
25 changed files with 175 additions and 382 deletions

View File

@@ -44,10 +44,8 @@ func (r *Client) GetGroupChatList(req *GroupChatListRequest) (*GroupChatListResp
return nil, err
}
result := &GroupChatListResponse{}
if err = util.DecodeWithError(response, result, "GetGroupChatList"); err != nil {
return nil, err
}
return result, nil
err = util.DecodeWithError(response, result, "GetGroupChatList")
return result, err
}
type (
@@ -106,10 +104,8 @@ func (r *Client) GetGroupChatDetail(req *GroupChatDetailRequest) (*GroupChatDeta
return nil, err
}
result := &GroupChatDetailResponse{}
if err = util.DecodeWithError(response, result, "GetGroupChatDetail"); err != nil {
return nil, err
}
return result, nil
err = util.DecodeWithError(response, result, "GetGroupChatDetail")
return result, err
}
type (
@@ -137,8 +133,6 @@ func (r *Client) OpengIDToChatID(req *OpengIDToChatIDRequest) (*OpengIDToChatIDR
return nil, err
}
result := &OpengIDToChatIDResponse{}
if err = util.DecodeWithError(response, result, "GetGroupChatDetail"); err != nil {
return nil, err
}
return result, nil
err = util.DecodeWithError(response, result, "GetGroupChatDetail")
return result, err
}