1.main文件 张义部分新增两个接口

2.teacher.py api层 实例化对象修改
3.teacher.py dao层 get_teacher_list函数参数调整
This commit is contained in:
2026-09-22 10:47:28 +08:00
parent 9bb60ce823
commit 59d67ec3a6
3 changed files with 8 additions and 8 deletions
+4 -1
View File
@@ -4,6 +4,8 @@ from middleware import log_middleware
from api.statistics import statistics_router
import uvicorn
from api.student import student_router
from api.teacher import router as teacher_router,class_teacher_router
app = FastAPI()
app.middleware("http")(log_middleware)
@@ -14,7 +16,8 @@ app.include_router(classes_router,tags=['班级接口'],prefix="/classes")
#-------------李玉杰--------------
app.include_router(student_router,tags=['学生接口'],prefix="/students")
#-------------张义---------------
app.include_router(teacher_router,tags=['教师接口'],prefix="/teachers")
app.include_router(class_teacher_router,tags=['教师班级关系接口'],prefix="/class_teacher")
#-------------薄鑫---------------
from api import consultant
app.include_router(consultant.router)