dbms/app/Services/Customer/ServiceServerService.php
2025-05-20 18:50:49 +09:00

47 lines
1.1 KiB
PHP

<?php
namespace App\Services\Customer;
use CodeIgniter\HTTP\IncomingRequest;
use App\Entities\Customer\ServiceServerEntity;
use App\Models\Customer\ServiceServerModel;
class ServiceServerService extends CustomerService
{
protected ?IncomingRequest $request = null;
public function __construct(?IncomingRequest $request = null)
{
parent::__construct($request);
}
public function getClassName(): string
{
return parent::getClassName() . DIRECTORY_SEPARATOR . "ServiceServer";
}
public function getModelClass(): ServiceServerModel
{
return new ServiceServerModel();
}
public function getEntityClass(): ServiceServerEntity
{
return new ServiceServerEntity();
}
public function getFields(): array
{
return [
"serviceinfo_uid",
"partinfo_uid",
"billing_type",
"amount",
];
}
public function getFilterFields(): array
{
return ["serviceinfo_uid", "type", "partinfo_uid"];
}
public function getBatchJobFields(): array
{
return ["type", "partinfo_uid"];
}
}