Files
xk-docs/docs/projects/xk-api-yii/modules/admin.md
2026-07-08 15:04:42 +08:00

30 lines
662 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 管理后台模块
## 模块说明
| 模块 | 说明 |
|------|------|
| 管理员管理 | 管理员 CRUD、角色分配 |
| RBAC 权限 | 基于 Yii2 RBAC 的权限体系 |
| 系统配置 | 键值对配置管理 |
| 菜单管理 | 动态菜单配置 |
## 目录结构
```
admin/
├── controllers/ # 控制器
├── models/ # 模型
├── views/ # 视图
└── config/ # 配置
```
## RBAC 权限体系
Yii2 内置 RBAC
- `yii_auth_item` — 权限项
- `yii_auth_item_child` — 权限层级
- `yii_auth_assignment` — 权限分配
- `yii_role` — 角色定义
- `yii_role_menu` — 角色-菜单绑定