|
|
|
'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/native_place'] = { content: '查询籍贯列表', visible: true };
|
|
|
|
router.get('/member/native_place', member.nativePlaceList);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/member/marital'] = { content: '查询婚育列表', visible: true };
|
|
|
|
router.get('/member/marital', member.maritalList);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/member/work_place'] = { content: '查询工作地列表', visible: true };
|
|
|
|
router.get('/member/work_place', member.workPlaceList);
|
|
|
|
|
|
|
|
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);
|
|
|
|
};
|