CompanyConsultantService.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: wuzhenke
  5. * Date: 2018/11/13
  6. * Time: 17:44
  7. */
  8. namespace App\Services\Company;
  9. use App\Repositories\CompanyConsultantRepository;
  10. use App\Repositories\CompanyRepository;
  11. use App\Repositories\MemberLogRepository;
  12. class CompanyConsultantService
  13. {
  14. protected $companyRepository;
  15. protected $memberLogRepository;
  16. protected $companyConsultantRepository;
  17. /**
  18. * CompanyImgService constructor.
  19. * @param $companyImgRepository
  20. * @param $companyRepository
  21. * @param $taskService
  22. * @param $memberLogRepository
  23. */
  24. public function __construct(MemberLogRepository $memberLogRepository, CompanyRepository $companyRepository, CompanyConsultantRepository $companyConsultantRepository)
  25. {
  26. $this->companyRepository = $companyRepository;
  27. $this->memberLogRepository = $memberLogRepository;
  28. $this->companyConsultantRepository = $companyConsultantRepository;
  29. }
  30. public function getCompanyConsultant($user)
  31. {
  32. return $this->companyConsultantRepository->getCompanyConsultant(['company_id'=>$user->id]);
  33. }
  34. }