From 50cfb52667271b00a488179c520c20b1559fef05 Mon Sep 17 00:00:00 2001 From: kanade Date: Wed, 18 Jun 2025 16:22:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(product):=20=E6=B7=BB=E5=8A=A0=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E4=B8=9A=E5=8A=A1=E5=91=98=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 ArgsProductChangeStaff 结构体用于传递更改业务员参数 - 实现 ChangeStaff 方法,用于调用远程服务更改业务员信息 --- erp/product.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/erp/product.go b/erp/product.go index fa739ed..212a360 100644 --- a/erp/product.go +++ b/erp/product.go @@ -280,3 +280,19 @@ func (p *product) Clone(ctx context.Context, args ArgsProductClone) (newProductI err = xClient.Call(ctx, "Clone", args, &newProductId) 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) +}