From 1975cccdb1daa1347fac3774ba3d4d29541902ce Mon Sep 17 00:00:00 2001 From: kanade Date: Thu, 4 Dec 2025 15:54:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(oa):=20=E6=B7=BB=E5=8A=A0=E5=91=98?= =?UTF-8?q?=E5=B7=A5=E9=87=91=E8=9D=B6=E4=BF=A1=E6=81=AF=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在ReplyStaffIk3cloudInfo结构体中新增Department字段 - 引入oa包以支持部门信息的嵌套结构 - 保持原有金蝶员工相关字段不变,扩展数据结构兼容性 --- oa/staff.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/oa/staff.go b/oa/staff.go index 8803898..ae56507 100644 --- a/oa/staff.go +++ b/oa/staff.go @@ -6,6 +6,7 @@ import ( "git.kumo.work/shama/service/client" "git.kumo.work/shama/service/lib/bean" + "git.kumo.work/shama/service/oa" ) type staff struct { @@ -267,14 +268,15 @@ func (s *staff) Enable(ctx context.Context, staffIds []int64) (err error) { } type ReplyStaffIk3cloudInfo struct { - Id int64 `json:"id"` // 金蝶员工id - Number string `json:"number"` // 金蝶员工编码 - PositionId int64 `json:"positionId"` // 金蝶部门职位id - PositionNumber string `json:"positionNumber"` // 金蝶部门职位编码 - XsyId int64 `json:"xsyId"` // 金蝶员工销售员id - XsyNumber string `json:"xsyNumber"` // 金蝶员工销售员编码 - CgyId int64 `json:"cgyId"` // 金蝶员工采购员id - CgyNumber string `json:"cgyNumber"` // 金蝶员工采购员编码 + Id int64 `json:"id"` // 金蝶员工id + Number string `json:"number"` // 金蝶员工编码 + PositionId int64 `json:"positionId"` // 金蝶部门职位id + PositionNumber string `json:"positionNumber"` // 金蝶部门职位编码 + XsyId int64 `json:"xsyId"` // 金蝶员工销售员id + XsyNumber string `json:"xsyNumber"` // 金蝶员工销售员编码 + CgyId int64 `json:"cgyId"` // 金蝶员工采购员id + CgyNumber string `json:"cgyNumber"` // 金蝶员工采购员编码 + Department ReplyDepartmentIk3cloudInfo `json:"department"` } // Ik3cloudInfo @TITLE 金蝶同步信息