success(NotebookUserService::aop()->lists()); } /** * 更新数据 * * @return ResponseInterface * @throws ApiMessageException */ #[Scene('update')] #[PostMapping(path: 'update')] public function update(): ResponseInterface { NotebookUserService::aop()->update($this->request->post()); return Response::json()->success(); } /** * 删除数据 * * @return ResponseInterface * @throws ApiMessageException */ #[Scene('destroy')] #[PostMapping(path: 'destroy')] public function destroy(): ResponseInterface { NotebookUserService::aop()->destroy($this->request->post('ids')); return Response::json()->success(); } }