问题修复
This commit is contained in:
parent
857852c2e3
commit
337065d094
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user