update
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Api\Service;
|
||||
|
||||
use App\Repositories\Api\Service\ServiceRepositoryInterface;
|
||||
|
||||
class ServiceService
|
||||
{
|
||||
protected $serviceRepository;
|
||||
|
||||
public function __construct(ServiceRepositoryInterface $serviceRepository)
|
||||
{
|
||||
$this->serviceRepository = $serviceRepository;
|
||||
}
|
||||
|
||||
/**
|
||||
* Lấy danh sách dịch vụ đang hoạt động
|
||||
*/
|
||||
public function getActiveServices()
|
||||
{
|
||||
return $this->serviceRepository->getActiveServices();
|
||||
}
|
||||
|
||||
public function findActiveBySlug(string $slug)
|
||||
{
|
||||
return $this->serviceRepository->findActiveBySlug($slug);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user