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.
19 lines
823 B
19 lines
823 B
1 year ago
|
'use strict';
|
||
|
|
||
|
const reportConfiguration = require('../../controllers/reportConfiguration');
|
||
|
|
||
|
module.exports = function (app, router, opts) {
|
||
|
|
||
|
app.fs.api.logAttr['GET/reportList'] = { content: '获取报表配置列表', visible: false };
|
||
|
router.get('/reportList', reportConfiguration.reportList);
|
||
|
|
||
|
app.fs.api.logAttr['POST/postReport'] = { content: '编辑或者新增报表配置', visible: false };
|
||
|
router.post('/postReport', reportConfiguration.postReport);
|
||
|
|
||
|
app.fs.api.logAttr['DELETE/reportList/:id'] = { content: '删除报表配置', visible: false };
|
||
|
router.delete('/reportList/:id', reportConfiguration.delReport);
|
||
|
|
||
|
app.fs.api.logAttr['POST/generate/report'] = { content: '生成报表', visible: true };
|
||
|
router.post('/generate/report', reportConfiguration.postGenerateReport)
|
||
|
|
||
|
}
|