更新 'app/api/controller/Category.php'

update
wysf
liuqing 10 months ago
parent 34643d1f5b
commit 7d91da0207
  1. 7
      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'));
}
}

Loading…
Cancel
Save