12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace app\controller\api\article;
- use think\App;
- use app\common\repositories\article\ArticleCategoryRepository as repository;
- use ln\basic\BaseController;
- class ArticleCategory extends BaseController
- {
- /**
- * @var repository
- */
- protected $repository;
- /**
- * StoreBrand constructor.
- * @param App $app
- * @param repository $repository
- */
- public function __construct(App $app, repository $repository)
- {
- parent::__construct($app);
- $this->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());
- }
- }
|