部署
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user