feat(accounting): 添加取消审核功能
- 在 accounting 结构中新增 CancelAudit 方法 - 该方法用于调用取消审核接口,参数为会计凭证 ID - 完成对取消审核功能的实现,解决相关功能需求
This commit is contained in:
parent
08ba9559a9
commit
c58fcc0471
@ -202,3 +202,14 @@ func (a *accounting) Cancel(ctx context.Context, accountingId int64) (err error)
|
|||||||
err = xClient.Call(ctx, "Cancel", accountingId, &reply)
|
err = xClient.Call(ctx, "Cancel", accountingId, &reply)
|
||||||
return
|
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
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user