123456789101112131415161718192021222324252627282930 |
- <?php
- /*
- * This file is part of the Jiannei/lumen-api-starter.
- *
- * (c) Jiannei <longjian.huang@foxmail.com>
- *
- * This source file is subject to the MIT license that is bundled
- * with this source code in the file LICENSE.
- */
- namespace App\Services;
- use App\Contracts\Repositories\PostRepository;
- use App\Repositories\Presenters\PostPresenter;
- class PostService
- {
- private $repository;
- public function __construct(PostRepository $repository)
- {
- $this->repository = $repository;
- }
- public function handleSearchList()
- {
- return $this->repository->searchPage();
- }
- }
|