政务数据资源中心(Government data Resource center) 03专项3期主要建设内容
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

43 lines
2.7 KiB

'use strict';
const businessMetadata = require('../../controllers/businessMetadata');
module.exports = function (app, router, opts) {
app.fs.api.logAttr['GET/business/metadata/databases'] = { content: '获取表业务元数据列表', visible: false };
router.get('/business/metadata/databases', businessMetadata.getBusinessMetadataDatabases);
app.fs.api.logAttr['POST/business/metadata/databases'] = { content: '新建表业务元数据', visible: true };
router.post('/business/metadata/databases', businessMetadata.postBusinessMetadataDatabases);
app.fs.api.logAttr['PUT/business/metadata/databases/:id'] = { content: '修改表业务元数据', visible: true };
router.put('/business/metadata/databases/:id', businessMetadata.putBusinessMetadataDatabases);
app.fs.api.logAttr['DEL/business/metadata/databases/:id'] = { content: '删除表业务元数据', visible: true };
router.delete('/business/metadata/databases/:id', businessMetadata.delBusinessMetadataDatabases);
app.fs.api.logAttr['GET/business/metadata/files'] = { content: '获取文件业务元数据列表', visible: false };
router.get('/business/metadata/files', businessMetadata.getBusinessMetadataFiles);
app.fs.api.logAttr['POST/business/metadata/files'] = { content: '新建文件业务元数据', visible: true };
router.post('/business/metadata/files', businessMetadata.postBusinessMetadataFiles);
app.fs.api.logAttr['PUT/business/metadata/files/:id'] = { content: '修改文件业务元数据', visible: true };
router.put('/business/metadata/files/:id', businessMetadata.putBusinessMetadataFiles);
app.fs.api.logAttr['DEL/business/metadata/files/:id'] = { content: '删除文件业务元数据', visible: true };
router.delete('/business/metadata/files/:id', businessMetadata.delBusinessMetadataFiles);
app.fs.api.logAttr['GET/business/metadata/restapis'] = { content: '获取接口业务元数据列表', visible: false };
router.get('/business/metadata/restapis', businessMetadata.getBusinessMetadataRestapis);
app.fs.api.logAttr['POST/business/metadata/restapis'] = { content: '新建接口业务元数据', visible: true };
router.post('/business/metadata/restapis', businessMetadata.postBusinessMetadataRestapis);
app.fs.api.logAttr['PUT/business/metadata/restapis/:id'] = { content: '修改接口业务元数据', visible: true };
router.put('/business/metadata/restapis/:id', businessMetadata.putBusinessMetadataRestapis);
app.fs.api.logAttr['DEL/business/metadata/restapis/:id'] = { content: '删除接口业务元数据', visible: true };
router.delete('/business/metadata/restapis/:id', businessMetadata.delBusinessMetadataRestapis);
};