feat(oa): 添加员工金蝶信息中的部门字段
- 在ReplyStaffIk3cloudInfo结构体中新增Department字段 - 引入oa包以支持部门信息的嵌套结构 - 保持原有金蝶员工相关字段不变,扩展数据结构兼容性
This commit is contained in:
18
oa/staff.go
18
oa/staff.go
@@ -6,6 +6,7 @@ import (
|
|||||||
|
|
||||||
"git.kumo.work/shama/service/client"
|
"git.kumo.work/shama/service/client"
|
||||||
"git.kumo.work/shama/service/lib/bean"
|
"git.kumo.work/shama/service/lib/bean"
|
||||||
|
"git.kumo.work/shama/service/oa"
|
||||||
)
|
)
|
||||||
|
|
||||||
type staff struct {
|
type staff struct {
|
||||||
@@ -267,14 +268,15 @@ func (s *staff) Enable(ctx context.Context, staffIds []int64) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReplyStaffIk3cloudInfo struct {
|
type ReplyStaffIk3cloudInfo struct {
|
||||||
Id int64 `json:"id"` // 金蝶员工id
|
Id int64 `json:"id"` // 金蝶员工id
|
||||||
Number string `json:"number"` // 金蝶员工编码
|
Number string `json:"number"` // 金蝶员工编码
|
||||||
PositionId int64 `json:"positionId"` // 金蝶部门职位id
|
PositionId int64 `json:"positionId"` // 金蝶部门职位id
|
||||||
PositionNumber string `json:"positionNumber"` // 金蝶部门职位编码
|
PositionNumber string `json:"positionNumber"` // 金蝶部门职位编码
|
||||||
XsyId int64 `json:"xsyId"` // 金蝶员工销售员id
|
XsyId int64 `json:"xsyId"` // 金蝶员工销售员id
|
||||||
XsyNumber string `json:"xsyNumber"` // 金蝶员工销售员编码
|
XsyNumber string `json:"xsyNumber"` // 金蝶员工销售员编码
|
||||||
CgyId int64 `json:"cgyId"` // 金蝶员工采购员id
|
CgyId int64 `json:"cgyId"` // 金蝶员工采购员id
|
||||||
CgyNumber string `json:"cgyNumber"` // 金蝶员工采购员编码
|
CgyNumber string `json:"cgyNumber"` // 金蝶员工采购员编码
|
||||||
|
Department ReplyDepartmentIk3cloudInfo `json:"department"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ik3cloudInfo @TITLE 金蝶同步信息
|
// Ik3cloudInfo @TITLE 金蝶同步信息
|
||||||
|
|||||||
Reference in New Issue
Block a user