<?php
declare(strict_types = 1);
namespace App\System\Controller\Monitor;
use App\System\Service\SystemUserService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;
use Hyperf\HttpServer\Annotation\PostMapping;
use Mine\Annotation\Permission;
use Mine\MineController;
class OnlineUserMonitorController extends MineController
{
protected $service;
public function getPageList(): \Psr\Http\Message\ResponseInterface
{
return $this->success($this->service->getOnlineUserPageList($this->request->all()));
}
public function kickUser(): \Psr\Http\Message\ResponseInterface
{
return $this->service->kickUser((string) $this->request->input('id')) ?
$this->success() : $this->error();
}
}