feat: 角色管理

This commit is contained in:
zy7y
2022-09-15 18:54:19 +08:00
parent 62c647c1f2
commit 1e84782603
10 changed files with 360 additions and 13 deletions

View File

@@ -157,7 +157,9 @@ routes = [
summary="查询角色拥有权限",
**has_perm
),
Route.put("/role", endpoint=role_put, tags=["角色管理"], summary="角色更新", **has_perm),
Route.put(
"/role/{pk}", endpoint=role_put, tags=["角色管理"], summary="角色更新", **has_perm
),
Route.post(
"/role/query", endpoint=role_query, tags=["角色管理"], summary="角色条件查询", **has_perm
),