HrtoolsCategoryService.php 630 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2018/11/6
  6. * Time: 16:13
  7. */
  8. namespace App\Services\Content;
  9. use App\Repositories\HrtoolsCategoryRepository;
  10. class HrtoolsCategoryService
  11. {
  12. protected $hrtoolsCategoryRepository;
  13. /**
  14. * HrtoolsService constructor.
  15. * @param $hrtoolsRepository
  16. */
  17. public function __construct(HrtoolsCategoryRepository $hrtoolsCategoryRepository)
  18. {
  19. $this->hrtoolsCategoryRepository = $hrtoolsCategoryRepository;
  20. }
  21. public function lists($where = array())
  22. {
  23. return $this->hrtoolsCategoryRepository->getLists($where);
  24. }
  25. }