'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) }