mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-20 20:39:55 +00:00
feat(权限): 实现基于策略模式的权限过滤系统
添加 PermissionFilterStrategy 枚举定义不同权限过滤策略 在基础模型和业务模型中设置默认权限策略 重构权限服务支持策略模式,根据模型策略选择过滤方法 前端添加角色部门显示和默认头像处理
This commit is contained in:
@@ -633,6 +633,25 @@
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
},
|
||||
{
|
||||
"name": "分配权限",
|
||||
"type": 3,
|
||||
"icon": null,
|
||||
"order": 8,
|
||||
"permission": "module_system:role:permission",
|
||||
"route_name": null,
|
||||
"route_path": null,
|
||||
"component_path": null,
|
||||
"status": "0",
|
||||
"keep_alive": true,
|
||||
"hidden": false,
|
||||
"always_show": false,
|
||||
"title": "分配权限",
|
||||
"params": null,
|
||||
"affix": false,
|
||||
"redirect": null,
|
||||
"description": "初始化数据"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user