feat(append): 添加效益测算功能
- 新增 ArgsAppendBenefit 结构体用于传递效益测算参数 - 实现 Benefit 函数以调用远程服务的效益测算功能 - 增加错误处理和回复结构 ReplyBenefitInfo
This commit is contained in:
parent
33db682e9e
commit
337b9f0331
@ -92,3 +92,18 @@ func (a *append) Delete(ctx context.Context, saleProductIds []int64) (err error)
|
|||||||
reply := 0
|
reply := 0
|
||||||
return xClient.Call(ctx, "Delete", saleProductIds, &reply)
|
return xClient.Call(ctx, "Delete", saleProductIds, &reply)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ArgsAppendBenefit struct {
|
||||||
|
SaleId int64 // 销售合同id
|
||||||
|
WorkflowId int64 // 审核id
|
||||||
|
}
|
||||||
|
|
||||||
|
// Benefit @TITLE 效益测算
|
||||||
|
func (a *append) Benefit(ctx context.Context, args ArgsAppendBenefit) (reply ReplyBenefitInfo, err error) {
|
||||||
|
xClient, err := client.GetClient(a)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
err = xClient.Call(ctx, "Benefit", args, &reply)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user