# 用户权限

## 权限功能模块

1. 提供用户,角色管理等基础功能
2. 提供统一的多维度,可拓展的权限分配

   ```
    权限设置不再像以往那样和角色,用户直接关联.在此模块里,权限设置是通用的.
    你可以为用户,角色,自己定义的维度比如:机构,部门,岗位等维度进行权限分配.
    而且不仅仅支持基本等RBAC权限控制,还可以自定义控制到数据行和列.
   ```
3. 提供系统菜单管理

## 使用

引入依赖到`pom.xml`

```markup
<dependency>
    <groupId>org.hswebframework.web</groupId>
    <artifactId>hsweb-system-authorization-starter</artifactId>
    <version>${hsweb.framework.version}</version>
</dependency>
```

## 结构

![](/files/-LZDzqhVwadBZRehdfsa)

### 用户表

### 角色表

### 权限定义表

### 权限设置表

## 自定义权限维度

## Web接口


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hsweb.io/framework/ye-wu-gong-neng/yong-hu-quan-xian.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
