Files
2026-09-22 23:45:58 +08:00

26 lines
820 B
Python

from fastapi import FastAPI
from api.employment_api import emp_api
from api.student_api import StudentAPI
from api.statistics_api import StatisticsAPI
from api.teacher_api import teacher_api
from api.grade_api import gradeAPI
from api.cla_api import claAPI
tags_metadata = [
{"name": "教师基本信息管理模块"},
{"name": "班级管理模块"},
{"name": "学生基本信息管理模块"},
{"name": "学生考核成绩管理模块"},
{"name": "学生就业管理模块"},
{"name": "统计分析模块"},
]
app = FastAPI(title='沃林学生管理系统',openapi_tags=tags_metadata)
app.include_router(StudentAPI)
app.include_router(StatisticsAPI) #实现路由分发
app.include_router(teacher_api)
app.include_router(emp_api)
app.include_router(gradeAPI)
app.include_router(claAPI)