mirror of
https://gitee.com/ctexthuang/hyperf_rbac_framework_server_ctexthuang.git
synced 2025-12-25 15:57:50 +08:00
feat : admin user finish
This commit is contained in:
@@ -52,4 +52,28 @@ abstract class BaseAdminService
|
||||
* 主函数抽象类
|
||||
*/
|
||||
abstract public function handle();
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
protected function getCurrentPage(): int
|
||||
{
|
||||
return (int) $this->request->input('page', 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
protected function getPageSize(): int
|
||||
{
|
||||
return (int) $this->request->input('page_size', 20);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
protected function getRequestData(): array
|
||||
{
|
||||
return $this->request->all();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user