21 lines
648 B
Python
21 lines
648 B
Python
from fastapi import APIRouter
|
|
|
|
from Model.RuYuanZaiYuanCountModel import RuYuanZaiYuanModel
|
|
|
|
# 创建APIRouter实例
|
|
router = APIRouter(prefix="/RuYuanZaiYuan", tags=["大屏展示"])
|
|
|
|
# 默认的根路由
|
|
@router.get("/")
|
|
async def root():
|
|
return {"message": "Welcome to YunNan Education World!"}
|
|
|
|
@router.get("/school/preschool/chart")
|
|
async def get_preschool_education_chart_config():
|
|
return RuYuanZaiYuanModel.generate_preschool_education_config()
|
|
|
|
@router.get("/school/preschool/inschool/chart")
|
|
async def get_preschool_in_school_chart_config():
|
|
return RuYuanZaiYuanModel.generate_in_school_education_config()
|
|
|