Files
ulthon_admin/app/admin/model/SystemAdmin.php

29 lines
447 B
PHP

<?php
namespace app\admin\model;
use app\common\model\TimeModel;
class SystemAdmin extends TimeModel
{
protected $deleteTime = 'delete_time';
public static $autoCache = [
[
'name' => 'info',
'field' => 'id'
]
];
public function getAuthList()
{
$list = (new SystemAuth())
->where('status', 1)
->column('title', 'id');
return $list;
}
}