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.
32 lines
1.4 KiB
32 lines
1.4 KiB
1 year ago
|
'use strict';
|
||
|
|
||
|
const report = require('../../controllers/service/report');
|
||
|
|
||
|
module.exports = function (app, router, opts) {
|
||
|
app.fs.api.logAttr['GET/report/file'] = { content: '获取服务记录列表', visible: true };
|
||
|
router.get('/report/file', report.getReportFile);
|
||
|
|
||
|
app.fs.api.logAttr['POST/report/file'] = { content: '上传文件', visible: true };
|
||
|
router.post('/report/file', report.postReportFile);
|
||
|
|
||
|
app.fs.api.logAttr['DEL/report/file/:id'] = { content: '删除报表文件', visible: true };
|
||
|
router.del('/report/file/:id', report.delReportFile);
|
||
|
|
||
|
app.fs.api.logAttr['GET/factor/list'] = { content: '获取监测因素信息', visible: true };
|
||
|
router.get('/factor/list', report.getFactorList);
|
||
|
|
||
|
app.fs.api.logAttr['POST/automatic/report'] = { content: '新增/编辑报表生成规则', visible: true };
|
||
|
router.post('/automatic/report', report.postAutomaticReport);
|
||
|
|
||
|
app.fs.api.logAttr['GET/automatic/report'] = { content: '获取报表生成规则', visible: true };
|
||
|
router.get('/automatic/report', report.getAutomaticReport);
|
||
|
|
||
|
app.fs.api.logAttr['DEL/automatic/report/:id'] = { content: '删除报表规则', visible: true };
|
||
|
router.del('/automatic/report/:id', report.delAutomaticReport);
|
||
|
|
||
|
|
||
|
|
||
|
// app.fs.api.logAttr['GET/respond-record'] = { content: '获取响应记录数据', visible: true };
|
||
|
// router.get('/respond-record', record.respondRecord);
|
||
|
|
||
|
};
|