Skip to content

Commit 1bff1af

Browse files
authored
Merge branch 'master' into develop
2 parents 7beef03 + a67fcd4 commit 1bff1af

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,23 @@ composer require windhoney/yii2-rest-rbac
5959

6060

6161
* **创建所需要的表**
62-
###### 1. 用户表user和菜单表menu
62+
> ###### 1. 用户表user和菜单表menu
6363
```php
6464
yii migrate --migrationPath=@vendor/windhoney/yii2-rest-rbac/migrations
6565
```
66-
###### 2. rbac相关权限表
66+
> ###### 2. rbac相关权限表
6767
```php
6868
yii migrate --migrationPath=@yii/rbac/migrations/
6969
```
70+
7071
> **_**`auth_item` 表添加一个字段 `parent_name` varchar(30) COLLATE utf8_unicode_ci DEFAULT '' COMMENT '父级名称'**_**,
7172
###### 3. oauth2相关表
73+
7274
```php
7375
yii migrate --migrationPath=@vendor/filsh/yii2-oauth2-server/migrations
7476
```
7577

76-
###### 4. 新增分组表
78+
> ###### 4. 新增分组表
7779
7880
```mysql
7981
CREATE TABLE `auth_groups` (
@@ -100,16 +102,16 @@ CREATE TABLE `auth_groups_child` (
100102

101103
* **添加路由配置**
102104

103-
> 将yii2-rest-rbac/example/rbac_route.php文件内容配置到项目的urlManager的rules规则下
104-
也可在main.php文件中 添加
105+
> * 将yii2-rest-rbac/example/rbac_route.php文件内容配置到项目的urlManager的rules规则下
106+
> * 或者在main.php文件中 添加
105107
```php
106108
$dir = __DIR__ . "/route";
107109
$main = wind\rest\helper\RbacHelper::addRoute($dir, $main);
108110
return $main;
109111
```
110-
> 直接将此文件放到config/route/rbac_route.php
112+
>> 并将此文件放到config/route/rbac_route.php
111113
112114
* **接口文档参考**
113115

114-
> [文档](https://windhoney.gitbooks.io/yii2-rest-rbac/)
116+
* [文档](https://windhoney.gitbooks.io/yii2-rest-rbac/)
115117

0 commit comments

Comments
 (0)