基于Flask + MySQL的在线请假微信小程序
任何问题请在Discussions中提问
API
URL | explanation |
---|---|
/login | post ('userId', 'userPwd'); return (flag etc) |
/student/ask_leave | post ('student_id','start_time','end_time','reason','flag','teacher1_id','teacher2_id','type','ensure'); return (True \ False) |
/student/search_leave | post ('student_id'), return ('leave_num','student_id','start_time','end_time','reason','flag','teacher1_id','teacher2_id','type','ensure') |
/student/search_leave_detail | post('student_id'), return ('student_id','class','name','room') |
/teacher/search_leave | post('teacher_id'), return('leave_num','student_id','start_time','end_time','reason','flag','teacher1_id','teacher2_id','type','ensure') |
/teacher/update_leave | post('leave_num','flag'); return (True / False) |
/teacher2/search_leave | post('teacher_id'), return ('leave_num','student_id','start_time','end_time','reason','flag','teacher1_id','teacher2_id','type','ensure') |
/teacher/search_id | post('school'), return ('teacher_id','name','role') |
/pwd | post('userId','userPwd') return (True / False) |
/name | post('name'), return ('leave_num','student_id','start_time','end_time','reason','flag','teacher1_id','teacher2_id','type','ensure','class','school','room') |
-
学生提交请假请求,查看自己的请假详情和请假是否被批准等情况
-
辅导员管理学生的请假请求,查看学生请假记录
-
任课老师接查看学生的请假请求和是否被批准情况
- 学生,用户名为学号, 长度9位
- 辅导员,用户名为工号, 长度6位
- 任课教师,用户名为工号, 长度6位
前端:微信小程序
后端:Flask+微信云开发(上传图片功能使用云开发,其他功能使用Flask)
数据库:MySQL
Fuhaixu、ZYN、xuyongxiang