Files
xk-api-yii/common/models/AuthRole.php

12 lines
212 B
PHP
Raw Normal View History

2024-09-19 11:32:39 +08:00
<?php
namespace common\models;
class AuthRole extends \common\modelsgii\AuthRole
{
//关联权限
public function getAuthRule(){
return $this->hasOne(AuthRule::class,['id'=>'rule_id']);
}
}