问题修复

This commit is contained in:
守护自己的云 2024-10-24 14:00:46 +08:00
parent 857852c2e3
commit 337065d094

View File

@ -261,3 +261,19 @@ func (p *product) Delete(ctx context.Context, productIds []int64) (err error) {
reply := 0 reply := 0
return xClient.Call(ctx, "Delete", productIds, &reply) 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
}