|
|
|
'use strict';
|
|
|
|
|
|
|
|
const model = require('../../controllers/dataQuality/index');
|
|
|
|
|
|
|
|
module.exports = function (app, router, opts, AuthCode) {
|
|
|
|
|
|
|
|
app.fs.api.logAttr['POST/standard-doc-folders'] = { content: '标准文档目录新增', visible: true };
|
|
|
|
router.post('/standard-doc-folders', model.postStandardDocFolders(opts))
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/standard-doc-folders'] = { content: '标准文档目录列表', visible: true };
|
|
|
|
router.get('/standard-doc-folders', model.getStandardDocFolders(opts));
|
|
|
|
|
|
|
|
|
|
|
|
app.fs.api.logAttr['POST/standard-docs'] = { content: '新增标准文档', visible: true };
|
|
|
|
router.post('/standard-docs', model.postStandardDocs(opts))
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/standard-docs'] = { content: '标准文档列表', visible: true };
|
|
|
|
router.get('/standard-docs', model.getStandardDocs(opts));
|
|
|
|
|
|
|
|
app.fs.api.logAttr['POST/postFolderFile'] = { content: '删除文件夹或文件', visible: true };
|
|
|
|
router.post('/postFolderFile', model.postFolderFile(opts))
|
|
|
|
|
|
|
|
app.fs.api.logAttr['POST/business-rules'] = { content: '新增/修改业务规则', visible: true };
|
|
|
|
router.post('/business-rules', model.postBusinessRules(opts))
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/business-rules'] = { content: '查询业务规则列表', visible: true };
|
|
|
|
router.get('/business-rules', model.getBusinessRules(opts));
|
|
|
|
|
|
|
|
app.fs.api.logAttr['DEL/business-rules/:id'] = { content: '删除业务规则', visible: true };
|
|
|
|
router.del('/business-rules/:id', model.delBusinessRules(opts))
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/regular-basis'] = { content: '查询规则依据列表', visible: true };
|
|
|
|
router.get('/regular-basis', model.getRegularBasis(opts));
|
|
|
|
|
|
|
|
app.fs.api.logAttr['POST/fetchFiles'] = { content: '获取文件夹下文件', visible: true };
|
|
|
|
router.post('/fetchFiles', model.fetchFiles(opts));
|
|
|
|
};
|