'commit'
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
from fastapi import APIRouter
|
from fastapi import APIRouter
|
||||||
import json
|
import json
|
||||||
from Model.RenkouModel import RenkouModel
|
from Model.RenkouModel import RenkouModel
|
||||||
from Model.RuYuanZaiYuanCount import RuYuanZaiYuanModel
|
from Model.RuYuanZaiYuanCountModel import RuYuanZaiYuanModel
|
||||||
|
|
||||||
# 创建APIRouter实例
|
# 创建APIRouter实例
|
||||||
router = APIRouter(prefix="/bigscreen", tags=["大屏展示"])
|
router = APIRouter(prefix="/bigscreen", tags=["大屏展示"])
|
Binary file not shown.
Binary file not shown.
4
Start.py
4
Start.py
@@ -3,7 +3,7 @@
|
|||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from fastapi.staticfiles import StaticFiles
|
from fastapi.staticfiles import StaticFiles
|
||||||
import uvicorn
|
import uvicorn
|
||||||
from Controller.BigScreenController import router as bigscreen_router
|
from Controller.RuYuanZaiYuanCountController import router as ruyuanZaiYuan_router
|
||||||
|
|
||||||
# 创建 FastAPI 应用实例
|
# 创建 FastAPI 应用实例
|
||||||
app = FastAPI(title="云南教育决策研究服务系统", description="云南省教育数据分析和可视化平台")
|
app = FastAPI(title="云南教育决策研究服务系统", description="云南省教育数据分析和可视化平台")
|
||||||
@@ -12,7 +12,7 @@ app = FastAPI(title="云南教育决策研究服务系统", description="云南
|
|||||||
app.mount("/static", StaticFiles(directory="static"), name="static")
|
app.mount("/static", StaticFiles(directory="static"), name="static")
|
||||||
|
|
||||||
# 包含大屏展示路由
|
# 包含大屏展示路由
|
||||||
app.include_router(bigscreen_router)
|
app.include_router(ruyuanZaiYuan_router)
|
||||||
|
|
||||||
# 主程序入口
|
# 主程序入口
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Reference in New Issue
Block a user