
## 参考文档

- https://casbin.org/docs/zh-CN/rbac


## PERM模型

- Policy Effect Request Matcher


## Model的定义

#### [request_definition]

  描述 Enforce 参数的含义

- sub, dom, obj, typ, act

- subject 访问实体
- domain  访问域（租户）
- object  访问资源
- type    资源类型
- action  访问方法


#### [policy_definition]

  策略规则的描述，目前只支持单一 policy 定义

-  p, sub, obj, act


#### [policy_effect]

  多个 policy 同时匹配时，对 policy 生效范围的定义


#### [matchers]

  定义匹配策略


#### [role_definition]

  角色定义


