feat: Implement pagination for active services and introduce ServiceListResource for formatted API output.
This commit is contained in:
@@ -16,9 +16,9 @@ class ServiceService
|
||||
/**
|
||||
* Lấy danh sách dịch vụ đang hoạt động
|
||||
*/
|
||||
public function getActiveServices()
|
||||
public function getActiveServices(int $limit = 10)
|
||||
{
|
||||
return $this->serviceRepository->getActiveServices();
|
||||
return $this->serviceRepository->getActiveServices($limit);
|
||||
}
|
||||
|
||||
public function findActiveBySlug(string $slug)
|
||||
|
||||
Reference in New Issue
Block a user