Skip to content

Commit

Permalink
fix: 更换接口的遗漏修改
Browse files Browse the repository at this point in the history
  • Loading branch information
Mmx233 committed Nov 8, 2023
1 parent ab7a192 commit c247175
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/feishuApi/feishuApi.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (f Fs) doLoadUserListRequest(departmentID, pageToken string, pageSize uint)
query["page_token"] = pageToken
}
return &data, f.doRequest("GET", &data, &tool.DoHttpReq{
Url: "https://open.feishu.cn/open-apis/contact/v3/find_by_department",
Url: "https://open.feishu.cn/open-apis/contact/v3/users/find_by_department",
Header: map[string]interface{}{
"Authorization": "Bearer " + tenantToken,
"Content-Type": "application/json",
Expand All @@ -146,7 +146,7 @@ func (f Fs) doLoadUserListRequest(departmentID, pageToken string, pageSize uint)
}

func (f Fs) doLoadAllUserListRequest(departmentID string) ([]User, error) {
const pageSize = 99
const pageSize = 50
var r []User
res, err := f.doLoadUserListRequest(departmentID, "", pageSize)
if err != nil {
Expand Down

0 comments on commit c247175

Please sign in to comment.