47 lines
1.1 KiB
PHP
47 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
use App\Models\UserSNSModel as Model;
|
|
use App\Entities\UserSNSEntity as Entity;
|
|
use CodeIgniter\HTTP\IncomingRequest;
|
|
// use Google\Service\AndroidEnterprise\Resource\Users;
|
|
|
|
class UserSNSService extends CommonService
|
|
{
|
|
protected ?IncomingRequest $request = null;
|
|
public function __construct(?IncomingRequest $request = null)
|
|
{
|
|
parent::__construct($request);
|
|
}
|
|
final public function getClassName(): string
|
|
{
|
|
return "UserSNS";
|
|
}
|
|
final public function getClassPath(): string
|
|
{
|
|
return $this->getClassName();
|
|
}
|
|
public function getModelClass(): string
|
|
{
|
|
return Model::class;
|
|
}
|
|
public function getEntityClass(): string
|
|
{
|
|
return Entity::class;
|
|
}
|
|
|
|
public function getFields(): array
|
|
{
|
|
return [$this->getModel()::PARENT, 'site', 'id', $this->getModel()::TITLE, 'email'];
|
|
}
|
|
public function getFilterFields(): array
|
|
{
|
|
return [$this->getModel()::PARENT, 'status'];
|
|
}
|
|
public function getBatchJobFields(): array
|
|
{
|
|
return [];
|
|
}
|
|
}
|