fix: api name

This commit is contained in:
ourines committed 2023-10-17 17:01:46 +08:00
1 parent 946f3be9ec
commit cf7bd13db3
1 file changed
+1 -1
+1 -1
View File
@@ -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
}