This commit is contained in:
2024-09-05 17:06:40 +08:00
parent f2014976c9
commit c7ddb2b86e
6 changed files with 45 additions and 11 deletions

View File

@@ -118,3 +118,33 @@ func (w *workflow) Reject(ctx context.Context, args ArgsWorkflowReject) (err err
err = xClient.Call(ctx, "Reject", args, &reply)
return
}
type ReplyReviewNode struct {
ReviewStaffId int64 `json:"reviewStaffId"`
}
// ReviewNode @TITLE 获取审批节点
func (w *workflow) ReviewNode(ctx context.Context, workflowId int64) (reply ReplyReviewNode, err error) {
xClient, err := client.GetClient(w)
if err != nil {
return
}
err = xClient.Call(ctx, "ReviewNode", workflowId, &reply)
return
}
type ArgsWorkflowCancel struct {
StaffId int64 // 审核人
WorkflowId int64 // 工作流
}
// Cancel @TITLE 审核撤回
func (w *workflow) Cancel(ctx context.Context, args ArgsWorkflowCancel) (err error) {
xClient, err := client.GetClient(w)
if err != nil {
return
}
reply := 0
err = xClient.Call(ctx, "Cancel", args, &reply)
return
}