mirror of
https://github.com/silenceper/wechat.git
synced 2026-11-16 05:12:03 +08:00
fix: api name
This commit is contained in:
1 parent
946f3be9ec
commit
cf7bd13db3
1 file changed
+1
-1
@@ -139,7 +139,7 @@ func (r *Client) DepartmentListByID(departmentID int) ([]*Department, error) {
|
||||
}
|
||||
// 按照结构体解析返回值
|
||||
result := &DepartmentListResponse{}
|
||||
err = util.DecodeWithError(response, result, "DepartmentListByID")
|
||||
err = util.DecodeWithError(response, result, "DepartmentList")
|
||||
// 返回数据
|
||||
return result.Department, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user