Commit 35d99c7d authored by uuo00_n's avatar uuo00_n

fix(dashboard): 将校园总览接口的角色等级要求从5级降至4级

parent fddd97e3
......@@ -36,7 +36,7 @@ async def department(current_user: dict = Depends(require_role(3))):
@router.get(
"/campus/overview",
summary="校级端:校园整体总览",
description="需角色等级≥5;返回学生总数、今日出勤、请假与指示数量等宏观数据。"
description="需角色等级≥4;返回学生总数、今日出勤、请假与指示数量等宏观数据。"
)
async def campus(current_user: dict = Depends(require_role(5))):
async def campus(current_user: dict = Depends(require_role(4))):
return await campus_overview(current_user)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment