diff --git a/erp/product.go b/erp/product.go index d5e4c8c..987544e 100644 --- a/erp/product.go +++ b/erp/product.go @@ -261,3 +261,19 @@ func (p *product) Delete(ctx context.Context, productIds []int64) (err error) { reply := 0 return xClient.Call(ctx, "Delete", productIds, &reply) } + +type ArgsProductClone struct { + StaffId int64 // 员工id + DepartmentId int64 // 部门id + ProductId int64 // 产品ID +} + +// Clone @TITLE 复制产品 +func (p *product) Clone(ctx context.Context, args ArgsProductClone) (newProductId int64, err error) { + xClient, err := client.GetClient(p) + if err != nil { + return + } + err = xClient.Call(ctx, "Clone", args, &newProductId) + return +}