diff --git a/erp/sale/audit.go b/erp/sale/audit.go index e59be1e..649aea1 100644 --- a/erp/sale/audit.go +++ b/erp/sale/audit.go @@ -36,13 +36,12 @@ func (a *audit) Cancel(ctx context.Context, args ArgsAuditSubmit) (err error) { } // Append @TITLE 追加商品审核 -func (a *audit) Append(ctx context.Context, args ArgsAuditSubmit) (err error) { +func (a *audit) Append(ctx context.Context, args ArgsAuditSubmit) (workflowId int64, err error) { xClient, err := client.GetClient(a) if err != nil { return } - reply := 0 - err = xClient.Call(ctx, "Append", args, &reply) + err = xClient.Call(ctx, "Append", args, &workflowId) return } @@ -58,13 +57,12 @@ type ChangeProductItem struct { } // Change @TITLE 编辑商品审核 -func (a *audit) Change(ctx context.Context, args ArgsAuditChange) (err error) { +func (a *audit) Change(ctx context.Context, args ArgsAuditChange) (workflowId int64, err error) { xClient, err := client.GetClient(a) if err != nil { return } - reply := 0 - err = xClient.Call(ctx, "Change", args, &reply) + err = xClient.Call(ctx, "Change", args, &workflowId) return } @@ -76,12 +74,11 @@ type ArgsAuditBenefit struct { } // Benefit @TITLE 效益测算审核 -func (a *audit) Benefit(ctx context.Context, args ArgsAuditBenefit) (err error) { +func (a *audit) Benefit(ctx context.Context, args ArgsAuditBenefit) (workflowId int64, err error) { xClient, err := client.GetClient(a) if err != nil { return } - reply := 0 - err = xClient.Call(ctx, "Benefit", args, &reply) + err = xClient.Call(ctx, "Benefit", args, &workflowId) return }