TaoLer/app/admin/model/AuthGroupAccess.php

28 lines
523 B
PHP
Raw Normal View History

2020-04-02 23:41:48 +08:00
<?php
namespace app\admin\model;
use think\Model;
use think\model\concern\SoftDelete;
class AuthGroupAccess extends Model
{
//软删除
use SoftDelete;
protected $deleteTime = 'delete_time';
protected $defaultSoftDelete = 0;
//角色分配表关联管理员
public function admin()
{
return $this->belongsTo('Admin','uid','id');
}
//角色分配表关联管理员
public function authGroup()
{
return $this->belongsTo('AuthGroup','group_id','id');
}
2020-04-02 23:41:48 +08:00
}