'use strict'; const attendance = require('../../controllers/attendance'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/attendance/overtime'] = { content: '加班统计', visible: true }; router.get('/attendance/overtime', attendance.overtimeStatistic); app.fs.api.logAttr['GET/attendance/overtime/export'] = { content: '加班统计导出', visible: true }; router.get('/attendance/overtime/export', attendance.exportOvertimeStatistic); app.fs.api.logAttr['GET/attendance/vacate/type'] = { content: '请假类型', visible: true }; router.get('/attendance/vacate/type', attendance.vacateType); app.fs.api.logAttr['GET/attendance/vacate'] = { content: '请假统计', visible: true }; router.get('/attendance/vacate', attendance.vacateStatistic); app.fs.api.logAttr['GET/attendance/vacate/export'] = { content: '请假统计导出', visible: true }; router.get('/attendance/vacate/export', attendance.exportVacateStatistic); };