From 7d91da0207eaa758b815d7c72a84771b23028b60 Mon Sep 17 00:00:00 2001 From: liuqing Date: Sun, 10 Mar 2024 22:33:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'app/api/controller/Catego?= =?UTF-8?q?ry.php'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit update --- app/api/controller/Category.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/api/controller/Category.php b/app/api/controller/Category.php index 8ddbed70..c798ed76 100644 --- a/app/api/controller/Category.php +++ b/app/api/controller/Category.php @@ -35,4 +35,11 @@ class Category extends Controller $list = $model->getListPublic($this->request->param()); return $this->renderSuccess(compact('list')); } + + public function childrenList(): Json + { + $model = new CategoryModel; + $list = $model->getChildrenList($this->request->param()); + return $this->renderSuccess(compact('list')); + } }