feat(product): 添加更改业务员功能
- 新增 ArgsProductChangeStaff 结构体用于传递更改业务员参数 - 实现 ChangeStaff 方法,用于调用远程服务更改业务员信息
This commit is contained in:
parent
f4d385e08e
commit
50cfb52667
@ -280,3 +280,19 @@ func (p *product) Clone(ctx context.Context, args ArgsProductClone) (newProductI
|
|||||||
err = xClient.Call(ctx, "Clone", args, &newProductId)
|
err = xClient.Call(ctx, "Clone", args, &newProductId)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ArgsProductChangeStaff struct {
|
||||||
|
CustomId int64
|
||||||
|
StaffId int64
|
||||||
|
DepartmentId int64
|
||||||
|
}
|
||||||
|
|
||||||
|
// ChangeStaff @TITLE 更改业务员
|
||||||
|
func (p *product) ChangeStaff(ctx context.Context, args ArgsProductChangeStaff) (err error) {
|
||||||
|
xClient, err := client.GetClient(p)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
reply := 0
|
||||||
|
return xClient.Call(ctx, "ChangeStaff", args, &reply)
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user