dbms/app/Services/Customer/AccountService.php
2025-05-23 13:42:48 +09:00

44 lines
992 B
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);
$this->addClassName('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'];
}
}