How jiananyou/leavemanager works
leave-manager is a role-based leave-management backend, with a Vue/Axios frontend documented in the README. Its main workflow is student leave submission, tutor review, then education-office approval or refusal; approved requests can be routed to teachers for notification. Users also query leave status and history, while the education office can inspect statistics and import tutor records. The sampled controllers and services show request handling and service delegation; mapper persistence is supported by the project’s MyBatis setup, but the mapper-to-database wiring was not sampled, so that relationship is marked unverified.
Main entry points: LoginController.java Login API · EduController.java Education API · EduService.java Education Service · leavemanager.sql Leave Database
Components 19
Role APIs
- Login API
src/com/hziee/controller/LoginController.java - Student API
src/com/hziee/controller/StudentController.java - Tutor API
src/com/hziee/controller/TutorController.java - Teacher API
src/com/hziee/controller/TeacherController.java - Education API
src/com/hziee/controller/EduController.java
Leave Workflow
- Student Service
src/com/hziee/service/StudentService.java - Tutor Service
src/com/hziee/service/TutorService.java - Teacher Service
src/com/hziee/service/TeacherService.java - Education Service
src/com/hziee/service/EduService.java - Tutor Excel Import
src/com/hziee/util/ExcelUtil.java
Persistence
- Student Mapper
src/com/hziee/mapper/StudentMapper.java - Tutor Mapper
src/com/hziee/mapper/TutorMapper.java - Teacher Mapper
src/com/hziee/mapper/TeacherMapper.java - Education Mapper
src/com/hziee/mapper/EduMapper.java - Leave Database
document/leavemanager.sql
Domain And Utilities
- Leave Records
src/com/hziee/po - User Records
src/com/hziee/po - Date And Encoding
src/com/hziee/util
Other components
- Vue/Axios Client
Connections 25
- Vue/Axios Client → Login API: sends requests
README.md - Vue/Axios Client → Student API: sends requests
README.md - Vue/Axios Client → Tutor API: sends requests
README.md - Vue/Axios Client → Teacher API: sends requests
README.md - Vue/Axios Client → Education API: sends requests
README.md - Login API → Student Service: authenticates via
src/com/hziee/controller/LoginController.java - Login API → Tutor Service: authenticates via
src/com/hziee/controller/LoginController.java - Login API → Teacher Service: authenticates via
src/com/hziee/controller/LoginController.java - Login API → Education Service: authenticates via
src/com/hziee/controller/LoginController.java - Student API → Student Service: delegates to
src/com/hziee/controller/StudentController.java - Student API → Date And Encoding: formats dates
src/com/hziee/controller/StudentController.java - Tutor API → Tutor Service: delegates to
src/com/hziee/controller/TutorController.java - Teacher API → Teacher Service: delegates to
src/com/hziee/controller/TeacherController.java - Education API → Education Service: delegates to
src/com/hziee/controller/EduController.java - Education API → Date And Encoding: formats dates
src/com/hziee/controller/EduController.java - Education API → Tutor Excel Import: reads uploaded sheet
src/com/hziee/controller/EduController.java - Student Service → Student Mapper: calls
src/com/hziee/service/StudentService.java - Tutor Service → Tutor Mapper: calls
src/com/hziee/service/TutorService.java - Teacher Service → Teacher Mapper: calls
src/com/hziee/service/TeacherService.java - Education Service → Education Mapper: calls
src/com/hziee/service/EduService.java - Student Mapper → Leave Database: persists and queries
- Tutor Mapper → Leave Database: persists and queries
- Teacher Mapper → Leave Database: persists and queries
- Education Mapper → Leave Database: persists and queries
- Education API → Education Service: imports tutors
src/com/hziee/controller/EduController.java