From cf7bd13db373c9480f81cdca2f451179787e4d96 Mon Sep 17 00:00:00 2001 From: ourines Date: Tue, 17 Oct 2023 17:01:46 +0800 Subject: [PATCH] fix: api name --- work/addresslist/department.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/work/addresslist/department.go b/work/addresslist/department.go index 0ce6409..af38e31 100644 --- a/work/addresslist/department.go +++ b/work/addresslist/department.go @@ -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 }