dbms/app/Services/Customer/AccountService.php
2025-05-12 16:58:29 +09:00

47 lines
1.1 KiB
PHP

<?php
namespace App\Services\Customer;
use App\Entities\Customer\AccountEntity;
use App\Models\Customer\AccountModel;
use CodeIgniter\HTTP\IncomingRequest;
class AccountService extends CustomerService
{
protected ?IncomingRequest $request = null;
public function __construct(?IncomingRequest $request = null)
{
parent::__construct($request);
}
public function getClassName(): string
{
return parent::getClassName() . DIRECTORY_SEPARATOR . "Account";
}
public function getModelClass(): AccountModel
{
return new AccountModel();
}
public function getEntityClass(): AccountEntity
{
return new AccountEntity();
}
public function getFields(): array
{
return [
"clientinfo_uid",
"status",
"alias",
"title",
"amount"
];
}
public function getFilterFields(): array
{
return ["clientinfo_uid", 'status'];
}
public function getBatchJobFields(): array
{
return ['status'];
}
}