feat(append): 添加效益测算功能

- 新增 ArgsAppendBenefit 结构体用于传递效益测算参数
- 实现 Benefit 函数以调用远程服务的效益测算功能
- 增加错误处理和回复结构 ReplyBenefitInfo
This commit is contained in:
守护自己的云 2025-07-25 15:09:19 +08:00
parent 33db682e9e
commit 337b9f0331

View File

@ -92,3 +92,18 @@ func (a *append) Delete(ctx context.Context, saleProductIds []int64) (err error)
reply := 0
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
}