2026-09-22 12:23:18 +08:00
|
|
|
from fastapi import FastAPI,APIRouter
|
|
|
|
|
from class_management.main import Classes_API
|
|
|
|
|
from scores.main import Scores_API
|
|
|
|
|
from stu_jiuye.main import Shtudent_Jiuye
|
|
|
|
|
from students.main import Students_API
|
|
|
|
|
from Teachers.main import Teachers_API
|
2026-09-21 06:58:01 +08:00
|
|
|
|
2026-09-22 12:23:18 +08:00
|
|
|
app = FastAPI(title="学生管理系统")
|
|
|
|
|
|
|
|
|
|
app.include_router(Classes_API,tags=["classes"])
|
|
|
|
|
app.include_router(Scores_API,tags=["scores"])
|
|
|
|
|
app.include_router(Shtudent_Jiuye,tags=["Employments"])
|
|
|
|
|
app.include_router(Students_API,tags=["students"])
|
|
|
|
|
app.include_router(Teachers_API,tags=["teachers"])
|
2026-09-21 06:58:01 +08:00
|
|
|
|
2026-09-19 18:16:15 +08:00
|
|
|
def main():
|
|
|
|
|
print("Hello from student-manage-system!")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2026-09-22 12:23:18 +08:00
|
|
|
import uvicorn
|
|
|
|
|
uvicorn.run("main:app", host="0.0.0.0", port=59000)
|