AuthGroupAccess.php 312 B

1234567891011121314151617
  1. <?php
  2. namespace app\admin\model\department;
  3. use think\Model;
  4. class AuthGroupAccess extends Model
  5. {
  6. /**
  7. * 关联角色组
  8. * @return \think\model\relation\HasMany
  9. */
  10. public function getGroup()
  11. {
  12. return $this->belongsTo('\app\admin\model\AuthGroup', 'group_id', 'id');
  13. }
  14. }