顾问模块合并,都合完了哦,庆祝一下!!!
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#项目初始化入口
|
||||
from fastapi import FastAPI
|
||||
# 周学灵、熊浩钦、圣国伟、刘盼、彭少、赵康宁的路由
|
||||
from api import wl_student_api,wl_class_api,wl_score_api,wl_teacher_api,statistics,wl_emp_api
|
||||
from api import wl_student_api,wl_class_api,wl_score_api,wl_teacher_api,statistics,wl_emp_api,wl_advisor_api
|
||||
from database import Base, engine
|
||||
# wl_emp_model 必须显式导入:否则 wl_emp 表只能靠 statistics 的传递导入进 metadata,
|
||||
# 一旦统计路由被拿掉,create_all 会漏建 wl_emp,Student.emp 关系随即报错
|
||||
@@ -17,6 +17,7 @@ app.include_router(wl_score_api.router)
|
||||
app.include_router(wl_teacher_api.router)
|
||||
app.include_router(statistics.router)
|
||||
app.include_router(wl_emp_api.router)
|
||||
app.include_router(wl_advisor_api.router)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user