chore: 更新部门和员工模块
- 修改了部门模块的代码结构 - 调整了员工模块的相关配置 - 优化了两个模块间的依赖关系
This commit is contained in:
@@ -46,11 +46,11 @@ func (d *department) Save(ctx context.Context, args ArgsDepartmentSave) (entity
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Delete @TITLE 删除部门
|
// Delete @TITLE 删除部门
|
||||||
func (d *department) Delete(ctx context.Context, numbers []string) (err error) {
|
func (d *department) Delete(ctx context.Context, args Unique) (err error) {
|
||||||
xClient, err := client.GetClient(d)
|
xClient, err := client.GetClient(d)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var reply int
|
var reply int
|
||||||
return xClient.Call(ctx, "Delete", numbers, &reply)
|
return xClient.Call(ctx, "Delete", args, &reply)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user