feat(ik3cloud): 实现部门与员工的增删改查功能

- 添加部门新增、编辑、删除接口及逻辑实现
- 添加员工新增、编辑、启用、禁用、删除接口及逻辑实现
- 更新配置文件支持组织ID配置
- 初始化金蝶客户端连接配置
- 优化部门与员工数据查询结构
- 增加提交、审核、反审等业务流程处理
- 完善错误处理与日志记录机制
This commit is contained in:
2025-11-20 15:37:45 +08:00
parent 9968887665
commit b70ca388cf
8 changed files with 508 additions and 21 deletions

View File

@@ -15,3 +15,19 @@ func (d *Department) All(ctx context.Context, args int, reply *[]ik3cloud.Depart
*reply, err = logic.DepartmentLogic.All()
return err
}
// Add @TITLE 添加部门
func (d *Department) Add(ctx context.Context, args ik3cloud.ArgsDepartmentAdd, departmentId *int64) (err error) {
*departmentId, err = logic.DepartmentLogic.Add(args)
return err
}
// Edit @TITLE 编辑部门
func (d *Department) Edit(ctx context.Context, args ik3cloud.ArgsDepartmentEdit, reply *int) error {
return logic.DepartmentLogic.Edit(args.DepartmentId, args.ArgsDepartmentAdd)
}
// Delete @TITLE 删除部门
func (d *Department) Delete(ctx context.Context, numbers []string, reply *int) error {
return logic.DepartmentLogic.Delete(numbers)
}

View File

@@ -19,3 +19,29 @@ func (s *Staff) List(ctx context.Context, args ik3cloud.ArgsStaffList, reply *ik
}
return err
}
// Add @TITLE 添加员工
func (s *Staff) Add(ctx context.Context, args ik3cloud.ArgsStaffAdd, staffId *int64) (err error) {
*staffId, err = logic.StaffLogic.Add(args)
return
}
// Edit @TITLE 员工编辑
func (s *Staff) Edit(ctx context.Context, args ik3cloud.ArgsStaffEdit, reply *int) error {
return logic.StaffLogic.Edit(args.StaffId, args.ArgsStaffAdd)
}
// Disable @TITLE 禁用员工
func (s *Staff) Disable(ctx context.Context, numbers []string, reply *int) error {
return logic.StaffLogic.Disable(numbers)
}
// Enable @TITLE 启用员工
func (s *Staff) Enable(ctx context.Context, numbers []string, reply *int) error {
return logic.StaffLogic.Enable(numbers)
}
// Delete @TITLE 删除
func (s *Staff) Delete(ctx context.Context, numbers []string, reply *int) error {
return logic.StaffLogic.Delete(numbers)
}