You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
968 B
37 lines
968 B
1 year ago
|
<?php
|
||
|
|
||
|
namespace Plugins\Notebook\Service\Admin;
|
||
|
|
||
|
|
||
|
use App\Service\Admin\AbstractAdminService;
|
||
|
use App\Service\Admin\Traits\DestroyServiceTrait;
|
||
|
use App\Service\Admin\Traits\StoreServiceTrait;
|
||
|
use App\Service\Admin\Traits\UpdateServiceTrait;
|
||
|
use App\Service\Admin\Traits\SwitchServiceTrait;
|
||
|
use Plugins\Notebook\Model\NotebookUser;
|
||
|
use App\Util\EasySearch;
|
||
|
|
||
|
/**
|
||
|
* Class NotebookUserService
|
||
|
*/
|
||
|
class NotebookUserService extends AbstractAdminService
|
||
|
{
|
||
|
use StoreServiceTrait, UpdateServiceTrait, DestroyServiceTrait, SwitchServiceTrait;
|
||
|
|
||
|
public function __construct()
|
||
|
{
|
||
|
$this->model = new NotebookUser();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return array
|
||
|
*/
|
||
|
public function lists(): array
|
||
|
{
|
||
|
$query = $this->model->select(["notebook_user.id","notebook_user.notebook_id","notebook_user.administrators_id","notebook_user.mode","notebook_user.status","notebook_user.create_time"]);
|
||
|
|
||
|
return EasySearch::create($query)->getData();
|
||
|
}
|
||
|
|
||
|
}
|