feat(accounting): 添加取消审核功能

- 在 accounting 结构中新增 CancelAudit 方法
- 该方法用于调用取消审核接口,参数为会计凭证 ID
- 完成对取消审核功能的实现,解决相关功能需求
This commit is contained in:
守护自己的云 2025-04-22 14:30:51 +08:00
parent 08ba9559a9
commit c58fcc0471

View File

@ -202,3 +202,14 @@ func (a *accounting) Cancel(ctx context.Context, accountingId int64) (err error)
err = xClient.Call(ctx, "Cancel", accountingId, &reply)
return
}
// CancelAudit @TITLE 取消审核
func (a *accounting) CancelAudit(ctx context.Context, accountingId int64) (err error) {
xClient, err := client.GetClient(a)
if err != nil {
return
}
reply := 0
err = xClient.Call(ctx, "CancelAudit", accountingId, &reply)
return
}