feat: Add DNS management resources and importer
- Implemented DomainCollection, DomainDetailResource, DomainNSCollection, DomainNSResource, and DomainResource for handling DNS domain and record data. - Created VpsServiceCollection and VpsServiceResource for VPS service management. - Added DnsManagerNS and DnsManagerUser models to represent DNS records and user associations. - Developed AdminZoneDnsSqlImporter for importing DNS data from SQL dumps, including customer and DNS domain records. - Added migration scripts to update the customers table with new fields and sync foreign key references for DNS tables. - Created a migration preview document outlining the mapping and schema changes for the admin zone DNS import.
This commit is contained in:
@@ -16,9 +16,9 @@ class ServiceClientService
|
||||
/**
|
||||
* Lấy danh sách dịch vụ đang hoạt động
|
||||
*/
|
||||
public function getActiveServices(int $limit = 10)
|
||||
public function getActiveServices(int $customerId, ?string $productType = null, int $limit = 10)
|
||||
{
|
||||
return $this->serviceClientRepository->getActiveServices($limit);
|
||||
return $this->serviceClientRepository->getActiveServices($customerId, $productType, $limit);
|
||||
}
|
||||
|
||||
public function findActiveBySlug(string $slug)
|
||||
@@ -26,8 +26,8 @@ class ServiceClientService
|
||||
return $this->serviceClientRepository->findActiveBySlug($slug);
|
||||
}
|
||||
|
||||
public function getDetailService(string $uuid)
|
||||
public function getDetailService(string $uuid, int $customerId)
|
||||
{
|
||||
return $this->serviceClientRepository->getDetailService($uuid);
|
||||
return $this->serviceClientRepository->getDetailService($uuid, $customerId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user