工作流重新定义 以及create路由开发

This commit is contained in:
pixel
2019-11-20 15:45:07 +08:00
parent 6008ab01d5
commit a58e3d6801
10 changed files with 319 additions and 28 deletions

View File

@@ -1,6 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2019-10-26 23:18:53.1133875 +0800 CST m=+0.203566501
// 2019-11-20 10:46:22.2795763 +0800 CST m=+0.053896201
package docs
@@ -1042,6 +1042,37 @@ var doc = `{
}
}
}
},
"/workflow/createWorkFlow": {
"post": {
"produces": [
"application/json"
],
"tags": [
"workflow"
],
"summary": "注册工作流",
"parameters": [
{
"description": "注册工作流接口",
"name": "data",
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/dbModel.Workflow"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
"schema": {
"type": "string"
}
}
}
}
}
},
"definitions": {
@@ -1220,6 +1251,59 @@ var doc = `{
}
}
},
"dbModel.Workflow": {
"type": "object",
"properties": {
"workflowDescription": {
"description": "工作流描述",
"type": "string"
},
"workflowName": {
"description": "工作流英文id",
"type": "string"
},
"workflowNickName": {
"description": "工作流名称",
"type": "string"
},
"workflowStep": {
"description": "工作流步骤",
"type": "array",
"items": {
"$ref": "#/definitions/dbModel.WorkflowStepInfo"
}
}
}
},
"dbModel.WorkflowStepInfo": {
"type": "object",
"properties": {
"isEnd": {
"description": "是否是完结流节点",
"type": "boolean"
},
"isStrat": {
"description": "是否是开始流节点",
"type": "boolean"
},
"stepAuthorityID": {
"description": "操作者级别id",
"type": "string"
},
"stepName": {
"description": "工作流名称",
"type": "string"
},
"stepNo": {
"description": "步骤id (第几步)",
"type": "number"
},
"workflowID": {
"description": "所属工作流ID",
"type": "integer"
}
}
},
"modelInterface.PageInfo": {
"type": "object",
"properties": {

View File

@@ -1025,6 +1025,37 @@
}
}
}
},
"/workflow/createWorkFlow": {
"post": {
"produces": [
"application/json"
],
"tags": [
"workflow"
],
"summary": "注册工作流",
"parameters": [
{
"description": "注册工作流接口",
"name": "data",
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/dbModel.Workflow"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
"schema": {
"type": "string"
}
}
}
}
}
},
"definitions": {
@@ -1203,6 +1234,59 @@
}
}
},
"dbModel.Workflow": {
"type": "object",
"properties": {
"workflowDescription": {
"description": "工作流描述",
"type": "string"
},
"workflowName": {
"description": "工作流英文id",
"type": "string"
},
"workflowNickName": {
"description": "工作流名称",
"type": "string"
},
"workflowStep": {
"description": "工作流步骤",
"type": "array",
"items": {
"$ref": "#/definitions/dbModel.WorkflowStepInfo"
}
}
}
},
"dbModel.WorkflowStepInfo": {
"type": "object",
"properties": {
"isEnd": {
"description": "是否是完结流节点",
"type": "boolean"
},
"isStrat": {
"description": "是否是开始流节点",
"type": "boolean"
},
"stepAuthorityID": {
"description": "操作者级别id",
"type": "string"
},
"stepName": {
"description": "工作流名称",
"type": "string"
},
"stepNo": {
"description": "步骤id (第几步)",
"type": "number"
},
"workflowID": {
"description": "所属工作流ID",
"type": "integer"
}
}
},
"modelInterface.PageInfo": {
"type": "object",
"properties": {

View File

@@ -112,6 +112,44 @@ definitions:
title:
type: string
type: object
dbModel.Workflow:
properties:
workflowDescription:
description: 工作流描述
type: string
workflowName:
description: 工作流英文id
type: string
workflowNickName:
description: 工作流名称
type: string
workflowStep:
description: 工作流步骤
items:
$ref: '#/definitions/dbModel.WorkflowStepInfo'
type: array
type: object
dbModel.WorkflowStepInfo:
properties:
isEnd:
description: 是否是完结流节点
type: boolean
isStrat:
description: 是否是开始流节点
type: boolean
stepAuthorityID:
description: 操作者级别id
type: string
stepName:
description: 工作流名称
type: string
stepNo:
description: 步骤id (第几步)
type: number
workflowID:
description: 所属工作流ID
type: integer
type: object
modelInterface.PageInfo:
properties:
page:
@@ -753,6 +791,26 @@ paths:
summary: 用户上传头像
tags:
- User
/workflow/createWorkFlow:
post:
parameters:
- description: 注册工作流接口
in: body
name: data
required: true
schema:
$ref: '#/definitions/dbModel.Workflow'
type: object
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"注册成功"}'
schema:
type: string
summary: 注册工作流
tags:
- workflow
securityDefinitions:
ApiKeyAuth:
in: header