1.teacher dao
2.teacher api
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ from dao.teacher import (
|
||||
|
||||
router = APIRouter(prefix="/teacher", tags=["老师管理模块"])
|
||||
|
||||
#===========================老师表===============================
|
||||
#============================老师表===============================
|
||||
@router.get("/list", response_model=List[TeacherOut])
|
||||
def api_get_teacher_list(db: Session = Depends(get_db)):
|
||||
"""
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ from fastapi import HTTPException
|
||||
'''
|
||||
本文件内容为老师表与班级老师关系表的增删改查函数集合
|
||||
'''
|
||||
#================老师表Teacher的CRUD================
|
||||
#=================老师表Teacher的CRUD================
|
||||
#查询所有未被删除的老师
|
||||
def get_teacher_list(db:Session, teacher_id:int):
|
||||
teacher = get_teacher_by_id(db, teacher_id)
|
||||
|
||||
Reference in New Issue
Block a user