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
'use strict';
|
|
|
|
const member = require('../../controllers/member');
|
|
|
|
module.exports = function (app, router, opts) {
|
|
app.fs.api.logAttr['POST/member'] = { content: '添加人员信息', visible: true };
|
|
router.post('/member', member.add);
|
|
|
|
app.fs.api.logAttr['PUT/member'] = { content: '编辑人员信息', visible: true };
|
|
router.put('/member', member.edit);
|
|
|
|
app.fs.api.logAttr['DEL/member'] = { content: '删除人员信息', visible: true };
|
|
router.del('/member', member.del);
|
|
|
|
app.fs.api.logAttr['GET/member/search'] = { content: '搜索项企用户', visible: true };
|
|
router.get('/member/search', member.searchPepMember);
|
|
|
|
app.fs.api.logAttr['GET/member/list'] = { content: '查询人员列表', visible: true };
|
|
router.get('/member/list', member.list);
|
|
|
|
app.fs.api.logAttr['GET/member/overtime'] = { content: '查询单个人员加班统计数据', visible: true };
|
|
router.get('/member/overtime', member.overTimeStatistics);
|
|
|
|
app.fs.api.logAttr['GET/member/vacate'] = { content: '查询单个人员请假统计数据', visible: true };
|
|
router.get('/member/vacate', member.vacateStatistics);
|
|
|
|
app.fs.api.logAttr['POST/add/members/bulk'] = { content: '导入员工信息', visible: true };
|
|
router.post('/add/members/bulk', member.addMembersBulk);
|
|
|
|
app.fs.api.logAttr['GET/members/export'] = { content: '导出员工信息', visible: true };
|
|
router.get('/members/export', member.exportData);
|
|
};
|