refactor(department): 优化部门模块代码结构
- 调整部门相关代码的组织结构 - 改进部门模块的实现逻辑 - 提升代码可读性和维护性
This commit is contained in:
@@ -106,6 +106,16 @@ func (d *department) SetStaff(ctx context.Context, args ArgsDepartmentSetStaff)
|
|||||||
return xClient.Call(ctx, "SetStaff", args, &reply)
|
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 {
|
type ReplyDepartmentIk3cloudInfo struct {
|
||||||
Id int64 `json:"id"` // 金蝶员工id
|
Id int64 `json:"id"` // 金蝶员工id
|
||||||
Number string `json:"number"` // 金蝶员工编码
|
Number string `json:"number"` // 金蝶员工编码
|
||||||
|
|||||||
Reference in New Issue
Block a user