repository = $repository; } /** * @return mixed * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author Qinii */ public function lst() { return app('json')->success($this->repository->apiGetArticleCategory()); } public function info($id){ $info = $this->repository ->getSearch([]) ->where('article_category_id',$id) ->findOrEmpty() ->toArray(); return app('json')->success($info); } }