四好公路
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.

33 lines
1.6 KiB

3 years ago
'use strict';
const report = require('../../controllers/report');
const Department = require('../../controllers/organization/depUsers')
3 years ago
module.exports = function (app, router, opts) {
app.fs.api.logAttr['GET/report/list'] = { content: '获取上报列表', visible: false };
router.get('/report/list', report.reportList);
3 years ago
app.fs.api.logAttr['GET/report/position'] = { content: '获取最新上报位置', visible: false };
router.get('/report/position', report.reportPosition);
3 years ago
app.fs.api.logAttr['GET/report/:reportId/detail'] = { content: '获取上报详情', visible: false };
router.get('/report/:reportId/detail', report.reportDetail);
app.fs.api.logAttr['POST/report/:reportId/handle'] = { content: '处理上报详情', visible: false };
router.post('/report/:reportId/handle', report.reportHandle);
3 years ago
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);
app.fs.api.logAttr['get/allDepUsers'] = { content: '查询所有部门的员工', visible: false };
router.get('allDepUsers', Department.getDepUsers);
1 year ago
app.fs.api.logAttr['POST/report/spot/prepare'] = { content: '抽查预览', visible: false };
router.post('report/spot/prepare', report.spotPrepare);
app.fs.api.logAttr['GET/report/spot/check'] = { content: '抽查', visible: false };
router.get('report/spot/check', report.spotCheck);
3 years ago
}