添加流转接口 设计流转表

This commit is contained in:
pixel
2020-11-12 18:21:03 +08:00
parent 86afc0ddf4
commit 4863b2c5be
10 changed files with 85 additions and 18 deletions

View File

@@ -111,11 +111,11 @@ func FindWorkflowProcess(c *gin.Context) {
// @Produce application/json
// @Param data body model.WorkflowProcess true "用id查询WorkflowProcess"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /workflowProcess/findWorkflowCreateStep [get]
func FindWorkflowCreateStep(c *gin.Context) {
// @Router /workflowProcess/findWorkflowStep [get]
func FindWorkflowStep(c *gin.Context) {
var workflowProcess model.WorkflowProcess
_ = c.ShouldBindQuery(&workflowProcess)
err, workflow := service.GetWorkflowCreateStep(workflowProcess.ID)
err, workflow := service.FindWorkflowStep(workflowProcess.ID)
if err != nil {
response.FailWithMessage(fmt.Sprintf("查询失败,%v", err), c)
} else {