Browse Source

分类树

kphcdr 1 year ago
parent
commit
6e96fb82b5
1 changed files with 1 additions and 18 deletions
  1. 1 18
      app/Modules/Mini/Controllers/PageController.php

+ 1 - 18
app/Modules/Mini/Controllers/PageController.php

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