Role Management
Role management is the core module of the system permission system. By creating roles and assigning menu permissions, button permissions, and API permissions, and then assigning roles to users, fine-grained permission control is achieved.
Feature Entry
Click "System Management → Role Management" in the left menu to enter the management page.

Permission System
| Level | Description |
|---|---|
| User | System user |
| Role | A collection of permissions; a user can have multiple roles |
| Permission | Menu permissions, button permissions, API permissions |
Role List
| Column | Description |
|---|---|
| Role Name | The display name of the role |
| Description | Description of the role function |
| Status | Enabled/Disabled status |
Operation Features
| Feature | Description |
|---|---|
| Add | Create a new role |
| Edit | Edit role information |
| Delete | Delete a role |
| Batch Delete | Batch delete selected roles |
| API Authorization | Configure the APIs that the role can call |
| Menu/Button Authorization | Configure the menus and buttons that the role can access |
| Refresh | Refresh the role list |
Add/Edit Role
Click the "Add" or "Edit" button to open the role configuration dialog:

Configuration Items
| Field | Description |
|---|---|
| Role Name | The display name of the role |
| Description | Description of the role function |
| Enabled | Whether to enable this role |
API Authorization
Click the "API Authorization" button to configure the API interfaces that the role can call:

Authorization Operations
| Operation | Description |
|---|---|
| Search | Enter keywords in the search box to filter APIs |
| Select All | One-click select all API permissions |
| Clear | One-click clear all API permissions |
| Expand/Collapse | Expand or collapse API groups |
API permissions are displayed grouped by module. You can quickly locate the APIs that need authorization through search.
Menu/Button Authorization
Click the "Menu/Button Authorization" button to configure the menus the role can access and the buttons it can operate:

Authorization Operations
| Operation | Description |
|---|---|
| Search | Enter keywords in the search box to filter menus/buttons |
| Select All | One-click select all menu and button permissions |
| Clear | One-click clear all menu and button permissions |
| Expand/Collapse | Expand or collapse the menu tree |
Permission Tree Structure
Menu/button authorization is displayed in a tree structure:
| Level | Description |
|---|---|
| Menu | First-level node, controls menu access permissions |
| Button | Second-level node, controls button operation permissions |
Selecting a menu node will automatically select all button permissions under that menu. You can quickly locate the menus or buttons that need authorization through search.
Related Links
- User Management - User creation and management
- Menu Management - Menu and button configuration