'commit'
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
from fastapi import APIRouter
|
||||
import json
|
||||
from Model.RenkouModel import RenkouModel
|
||||
|
||||
from Model.RuYuanZaiYuanCountModel import RuYuanZaiYuanModel
|
||||
|
||||
# 创建APIRouter实例
|
||||
@@ -11,14 +10,6 @@ router = APIRouter(prefix="/bigscreen", tags=["大屏展示"])
|
||||
async def root():
|
||||
return {"message": "Welcome to YunNan Education World!"}
|
||||
|
||||
@router.get("/population/chart/{year}")
|
||||
async def get_population_chart_config(year: str = "2024"):
|
||||
return RenkouModel.generate_population_chart_config(year)
|
||||
|
||||
@router.get("/population/urbanization")
|
||||
async def get_urbanization_rate_chart_config():
|
||||
return RenkouModel.generate_urbanization_rate_chart_config()
|
||||
|
||||
@router.get("/school/preschool/chart")
|
||||
async def get_preschool_education_chart_config():
|
||||
return RuYuanZaiYuanModel.generate_preschool_education_config()
|
||||
|
Reference in New Issue
Block a user