Browse Source

工单系列文件夹

dev
巴林闲侠 2 years ago
parent
commit
84a33a92a4
  1. 6
      api/app/lib/controllers/workOrder/index.js
  2. 8
      api/app/lib/routes/workOrder/index.js

6
api/app/lib/controllers/workOrder/index.js

@ -13,4 +13,8 @@ async function getEnabledWorkflowProcess (ctx) {
message: typeof error == 'string' ? error : undefined
}
}
}
}
module.exports = {
getEnabledWorkflowProcess
};

8
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);
};
Loading…
Cancel
Save