'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); };