'use strict'; const report = require('../../controllers/report'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/report/list'] = { content: '获取上报列表', visible: false }; router.get('/report/list', report.reportList); app.fs.api.logAttr['GET/report/:reportId/detail'] = { content: '获取上报详情', visible: false }; router.get('/report/:reportId//detail', report.reportDetail); app.fs.api.logAttr['POST/report'] = { content: '创建上报', visible: false }; router.post('/report', report.createReport); app.fs.api.logAttr['DEL/report/:reportId'] = { content: '删除上报', visible: false }; router.del('/report/:reportId', report.deleteReport); }