Skip to content

Commit 674e379

Browse files
authored
Fix the role permission interface path (#643)
1 parent 6ee3983 commit 674e379

File tree

1 file changed

+2
-2
lines changed
  • backend/app/admin/api/v1/sys

1 file changed

+2
-2
lines changed

backend/app/admin/api/v1/sys/role.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async def update_role(pk: Annotated[int, Path(description='角色 ID')], obj: Up
106106

107107

108108
@router.put(
109-
'/{pk}/menu',
109+
'/{pk}/menus',
110110
summary='更新角色菜单',
111111
dependencies=[
112112
Depends(RequestPermission('sys:role:menu:edit')),
@@ -123,7 +123,7 @@ async def update_role_menus(
123123

124124

125125
@router.put(
126-
'/{pk}/scope',
126+
'/{pk}/scopes',
127127
summary='更新角色数据范围',
128128
dependencies=[
129129
Depends(RequestPermission('sys:role:scope:edit')),

0 commit comments

Comments
 (0)