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()); } }