From 148787617dc99ea2dc6311d18056d75f2eeceb4f Mon Sep 17 00:00:00 2001 From: kanade Date: Tue, 30 Dec 2025 11:53:34 +0800 Subject: [PATCH] =?UTF-8?q?refactor(department):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E6=A8=A1=E5=9D=97=E4=BB=A3=E7=A0=81=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调整部门相关代码的组织结构 - 改进部门模块的实现逻辑 - 提升代码可读性和维护性 --- oa/department.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/oa/department.go b/oa/department.go index e10b044..9a352ed 100644 --- a/oa/department.go +++ b/oa/department.go @@ -106,6 +106,16 @@ func (d *department) SetStaff(ctx context.Context, args ArgsDepartmentSetStaff) return xClient.Call(ctx, "SetStaff", args, &reply) } +// Parents @TITLE 获取上级部门 +func (d *department) Parents(ctx context.Context, departmentId int64) (reply []DepartmentItem, err error) { + xClient, err := client.GetClient(d) + if err != nil { + return + } + err = xClient.Call(ctx, "Parents", departmentId, &reply) + return +} + type ReplyDepartmentIk3cloudInfo struct { Id int64 `json:"id"` // 金蝶员工id Number string `json:"number"` // 金蝶员工编码