1
0
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:
ourines
2023-10-17 17:01:46 +08:00
parent 946f3be9ec
commit cf7bd13db3

View File

@@ -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
} }