初始化仓库
This commit is contained in:
12
common/models/AuthRole.php
Normal file
12
common/models/AuthRole.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace common\models;
|
||||
|
||||
class AuthRole extends \common\modelsgii\AuthRole
|
||||
{
|
||||
|
||||
//关联权限
|
||||
public function getAuthRule(){
|
||||
return $this->hasOne(AuthRule::class,['id'=>'rule_id']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user