command
Version:
v0.0.7
Opens a new window with list of versions in this module.
Published: Apr 7, 2026
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
User服务
围绕“员工”而搭建几个基本数据。
组织架构:A用户在B部门担任C职位
项目分工:A用户在B项目属于C角色拥有D权限
TODO
- 实现 RBAC 权限模型
- CURD 角色,角色可以继承,并且可以继承多个,但需要做回环检测
- 角色还有“作用范围”的概念
- 比如张三有权限打电话给李四,但是在档案室不允许打电话
- 张三打电话给李四的权限用 RBAC 表达不难:拥有打电话的权限,目标资源包含李四
- 在档案室打电话的权限,其实可以表达为:拥有打电话的权限,目标资源是档案室
- 但是理解起来不太顺,我更希望是“用户”,在“指定范围”内,对“指定资源”,拥有“指定权限”
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.