success($this->service->getPageList($this->request->all())); } /** * 详情 * @return ResponseInterface * @throws \Psr\Container\ContainerExceptionInterface * @throws \Psr\Container\NotFoundExceptionInterface */ #[GetMapping("detailed"), Permission("system:dataMaintain:detailed")] public function detailed(): ResponseInterface { return $this->success($this->service->getColumnList($this->request->input('table', null))); } /** * 优化表 * @return ResponseInterface * @throws \Psr\Container\ContainerExceptionInterface * @throws \Psr\Container\NotFoundExceptionInterface */ #[PostMapping("optimize"), Permission("system:dataMaintain:optimize"), OperationLog] public function optimize(): ResponseInterface { $tables = $this->request->input('tables', []); return $this->service->optimize($tables) ? $this->success() : $this->error(); } /** * 清理表碎片 * @return ResponseInterface * @throws \Psr\Container\ContainerExceptionInterface * @throws \Psr\Container\NotFoundExceptionInterface */ #[PostMapping("fragment"), Permission("system:dataMaintain:fragment"), OperationLog] public function fragment(): ResponseInterface { $tables = $this->request->input('tables', []); return $this->service->fragment($tables) ? $this->success() : $this->error(); } }