- 新增联系人保存与删除逻辑处理 - 新增工厂信息保存逻辑,支持银行、财务等详细信息 - 部门与员工模块接口参数调整,统一使用实体对象返回 - 优化部门与员工的增删改查操作,去除冗余代码 - 统一使用 constant 包管理业务类型常量 - 增加性别转换与整型数组转字符串工具函数 - RPC 注册新增工厂与联系人服务路由 - 调整客户端调用参数结构,增强代码可读性与维护性
This commit is contained in:
@@ -21,8 +21,8 @@ func (s *Staff) List(ctx context.Context, args ik3cloud.ArgsStaffList, reply *ik
|
||||
}
|
||||
|
||||
// Add @TITLE 添加员工
|
||||
func (s *Staff) Add(ctx context.Context, args ik3cloud.ArgsStaffAdd, staffId *int64) (err error) {
|
||||
*staffId, err = logic.StaffLogic.Add(args)
|
||||
func (s *Staff) Add(ctx context.Context, args ik3cloud.ArgsStaffAdd, entity *ik3cloud.Entity) (err error) {
|
||||
*entity, err = logic.StaffLogic.Add(args)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -32,16 +32,16 @@ func (s *Staff) Edit(ctx context.Context, args ik3cloud.ArgsStaffEdit, reply *in
|
||||
}
|
||||
|
||||
// Disable @TITLE 禁用员工
|
||||
func (s *Staff) Disable(ctx context.Context, numbers []string, reply *int) error {
|
||||
return logic.StaffLogic.Disable(numbers)
|
||||
func (s *Staff) Disable(ctx context.Context, args ik3cloud.Unique, reply *int) error {
|
||||
return logic.StaffLogic.Disable(args.Numbers, args.Ids)
|
||||
}
|
||||
|
||||
// Enable @TITLE 启用员工
|
||||
func (s *Staff) Enable(ctx context.Context, numbers []string, reply *int) error {
|
||||
return logic.StaffLogic.Enable(numbers)
|
||||
func (s *Staff) Enable(ctx context.Context, args ik3cloud.Unique, reply *int) error {
|
||||
return logic.StaffLogic.Enable(args.Numbers, args.Ids)
|
||||
}
|
||||
|
||||
// Delete @TITLE 删除
|
||||
func (s *Staff) Delete(ctx context.Context, numbers []string, reply *int) error {
|
||||
return logic.StaffLogic.Delete(numbers)
|
||||
func (s *Staff) Delete(ctx context.Context, args ik3cloud.Unique, reply *int) error {
|
||||
return logic.StaffLogic.Delete(args.Numbers, args.Ids)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user