'commit'
This commit is contained in:
@@ -8,15 +8,15 @@ router = APIRouter(prefix="/RuYuanZaiYuan", tags=["入校、在校人数统计"]
|
||||
|
||||
@router.get("/school/chart")
|
||||
async def get_education_chart_config(
|
||||
education_stage: str = Query(default="preschool", pattern="^(preschool|primary|junior|senior)$",
|
||||
description="教育阶段: preschool(学前), primary(小学), junior(初中), senior(高中)")
|
||||
education_stage: str = Query(default="preschool", pattern="^(preschool|primary|junior|senior|vocational)$",
|
||||
description="教育阶段: preschool(学前), primary(小学), junior(初中), senior(高中), vocational(中职)")
|
||||
):
|
||||
return RuYuanZaiYuanModel.generate_preschool_education_config(education_stage)
|
||||
|
||||
@router.get("/school/inschool/chart")
|
||||
async def get_in_school_chart_config(
|
||||
education_stage: str = Query(default="preschool", pattern="^(preschool|primary|junior|senior)$",
|
||||
description="教育阶段: preschool(学前), primary(小学), junior(初中), senior(高中)")
|
||||
education_stage: str = Query(default="preschool", pattern="^(preschool|primary|junior|senior|vocational)$",
|
||||
description="教育阶段: preschool(学前), primary(小学), junior(初中), senior(高中), vocational(中职)")
|
||||
):
|
||||
return RuYuanZaiYuanModel.generate_in_school_education_config(education_stage)
|
||||
|
||||
|
Reference in New Issue
Block a user