From 84a33a92a439afcf3afd904ab59897b719537afb Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Wed, 31 May 2023 10:54:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8D=95=E7=B3=BB=E5=88=97=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/workOrder/index.js | 6 +++++- api/app/lib/routes/workOrder/index.js | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 api/app/lib/routes/workOrder/index.js diff --git a/api/app/lib/controllers/workOrder/index.js b/api/app/lib/controllers/workOrder/index.js index 12aad4a..dd1c92d 100644 --- a/api/app/lib/controllers/workOrder/index.js +++ b/api/app/lib/controllers/workOrder/index.js @@ -13,4 +13,8 @@ async function getEnabledWorkflowProcess (ctx) { message: typeof error == 'string' ? error : undefined } } -} \ No newline at end of file +} + +module.exports = { + getEnabledWorkflowProcess +}; \ No newline at end of file diff --git a/api/app/lib/routes/workOrder/index.js b/api/app/lib/routes/workOrder/index.js new file mode 100644 index 0000000..fc669e4 --- /dev/null +++ b/api/app/lib/routes/workOrder/index.js @@ -0,0 +1,8 @@ +'use strict'; + +const workOrder = require('../../controllers/workOrder'); + +module.exports = function (app, router, opts) { + app.fs.api.logAttr['GET/workflow/process/enabled'] = { content: '获取工作流可用表单', visible: true }; + router.get('/workflow/process/enabled', workOrder.getEnabledWorkflowProcess); +}; \ No newline at end of file