新增搜索器
This commit is contained in:
@@ -24,9 +24,9 @@ class Department extends CatchController
|
||||
* @return \think\response\Json
|
||||
* @throws \think\db\exception\DbException
|
||||
*/
|
||||
public function index(CatchRequest $request): \think\response\Json
|
||||
public function index(): \think\response\Json
|
||||
{
|
||||
return CatchResponse::success(Tree::done($this->department->getList($request->param())));
|
||||
return CatchResponse::success(Tree::done($this->department->getList()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -22,9 +22,9 @@ class Job extends CatchController
|
||||
* @param CatchRequest $request
|
||||
* @return \think\response\Json
|
||||
*/
|
||||
public function index(CatchRequest $request): \think\response\Json
|
||||
public function index(): \think\response\Json
|
||||
{
|
||||
return CatchResponse::paginate($this->job->getList($request->param()));
|
||||
return CatchResponse::paginate($this->job->getList());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -24,9 +24,9 @@ class Permission extends CatchController
|
||||
* @param Request $request
|
||||
* @return \think\response\Json
|
||||
*/
|
||||
public function index(Request $request)
|
||||
public function index()
|
||||
{
|
||||
return CatchResponse::success(Tree::done($this->permissions->getList($request->param())));
|
||||
return CatchResponse::success(Tree::done($this->permissions->getList()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -23,9 +23,9 @@ class Role extends CatchController
|
||||
* @param Request $request
|
||||
* @return string
|
||||
*/
|
||||
public function index(Request $request)
|
||||
public function index()
|
||||
{
|
||||
return CatchResponse::success(Tree::done($this->role->getList($request->param())));
|
||||
return CatchResponse::success(Tree::done($this->role->getList()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user