$name; } // /** // * 主构造函数 // */ // public function __construct() // { // $this->adminId = Context::get('current_admin_id',0); // var_dump('BaseAdminService获取到的'.$this->adminId); // } /** * 主函数抽象类 */ 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(); } }