This commit is contained in:
2025-07-04 14:38:00 +08:00
parent 345e2391b1
commit 1b73974d46
8 changed files with 49 additions and 7 deletions
+12
View File
@@ -82,4 +82,16 @@ class CategorieService
throw $e;
}
}
public function delete(int $id)
{
if(empty($id)){
throw new BusinessException('id不能为空');
}
try {
$result = (new CategorieLogic())->delete($id);
return $result;
} catch (\Throwable $e) {
throw $e;
}
}
}