mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-23 13:42:25 +08:00
fix: api name
This commit is contained in:
@@ -139,7 +139,7 @@ func (r *Client) DepartmentListByID(departmentID int) ([]*Department, error) {
|
|||||||
}
|
}
|
||||||
// 按照结构体解析返回值
|
// 按照结构体解析返回值
|
||||||
result := &DepartmentListResponse{}
|
result := &DepartmentListResponse{}
|
||||||
err = util.DecodeWithError(response, result, "DepartmentListByID")
|
err = util.DecodeWithError(response, result, "DepartmentList")
|
||||||
// 返回数据
|
// 返回数据
|
||||||
return result.Department, err
|
return result.Department, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user