feat: Implement pagination for active services and introduce ServiceListResource for formatted API output.

This commit is contained in:
pbao9
2026-02-11 11:32:45 +07:00
parent 6b6385f441
commit 8ecea7badc
5 changed files with 60 additions and 9 deletions
+2 -2
View File
@@ -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)