hyperf-view/builder/Generator/Stubs/Controller/treeList.stub

25 lines
748 B
Plaintext

/**
* 获取列表树
* @return ResponseInterface
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*/
#[GetMapping("index"), Permission("{INDEX_PERMISSION}")]
public function index(): ResponseInterface
{
return $this->success($this->service->getTreeList($this->request->all()));
}
/**
* 前端选择树(不需要权限)
* @return ResponseInterface
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*/
#[GetMapping("tree")]
public function tree(): ResponseInterface
{
return $this->success($this->service->getSelectTree());
}