Files
StuManagerSys/main.py
T

22 lines
795 B
Python
Raw Normal View History

2026-09-22 21:37:38 +08:00
from fastapi import FastAPI
from api.th_api import t_router
from api.epy_api import epy_router
from api.stu_api import stu_router
from api.sc_api import score_router
from api.class_api import class_router
from api.tj_api import StatsAPI
from database import *
Base.metadata.create_all(engine)
app = FastAPI()
app.include_router(epy_router,prefix='/employment',tags=['就业信息管理模块'])
app.include_router(stu_router,prefix='/students',tags=['学生信息管理模块'])
app.include_router(score_router,prefix='/scores',tags=['成绩管理模块'])
app.include_router(class_router,prefix='/classes',tags=['班级管理模块'])
app.include_router(StatsAPI,prefix='/statistics',tags=['统计管理模块'])
app.include_router(t_router,prefix='/teachers',tags=['教师管理模块'])