@@ -74,24 +74,7 @@ class PageController extends BaseController
public function categoryTree()
{
return $this->ok([
- "categoryTree" => [
- [
- "id" => 1,
- "name" => "一级分类",
- "child" => [
- "name" => "二级分类",
- ],
+ "categoryTree" => $this->service->categoryTree(),
]);
}