get(); $param['is_cutter'] = 1; $list = $this->service->getList($param,'*',$param['page']??0,$param['limit']??0); return successTrans("success.data",$list); } catch (\Throwable $throwable) { return error($throwable->getMessage()); } } #[Route(path: "info/{id}",methods: "get")] public function info($id): Response { try { $take = $this->service->getOne(["id"=>$id,'status'=>1,'is_del'=>0]); if ($take->isEmpty()) return errorTrans("empty.error"); return successTrans("success.data",$take->toArray()); } catch (\Throwable $throwable) { return error($throwable->getMessage()); } } }