- ProvisionDnsDomainJob/SuspendDnsDomainJob: tạo domain admin lên Plesk, huỷ = suspend (is_created=3) - Khách xem zone DNS được gán ở /dich-vu/domain, quản lý bản ghi A/AAAA/CNAME/TXT/MX/SRV - send-mail hoá đơn đẩy SendInvoiceMailJob, preview + sửa nội dung, ghi mail.order_id - invoice_attachments.type (payment_proof/deployment) - CacheService xoá theo SCAN pattern, Redis không persistent mặc định - Backfill transactions.public_code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 lines
890 B
PHP
36 lines
890 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources\Api\Service;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class DomainDetailResource extends JsonResource
|
|
{
|
|
public function __construct($resource, protected mixed $records = null)
|
|
{
|
|
parent::__construct($resource);
|
|
}
|
|
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function toArray(Request $request): array
|
|
{
|
|
return [
|
|
'domain_name' => $this->domain_name,
|
|
'records' => $this->records ? new DomainNSCollection($this->records) : [
|
|
'items' => [],
|
|
'pagination' => [
|
|
'total' => 0,
|
|
'per_page' => 0,
|
|
'current_page' => 1,
|
|
'last_page' => 1,
|
|
],
|
|
],
|
|
];
|
|
}
|
|
}
|