28 lines
583 B
PHP
28 lines
583 B
PHP
<?php
|
|
|
|
namespace App\JsonRpc\Service;
|
|
|
|
use Aether\AetherCrudService;
|
|
use Aether\AetherModel;
|
|
use Aether\AetherValidator;
|
|
use App\Model\Teacher;
|
|
use App\Validator\TeacherValidator;
|
|
use Hyperf\Di\Annotation\Inject;
|
|
|
|
class TeacherService extends AetherCrudService
|
|
{
|
|
#[Inject]
|
|
protected Teacher $teacherModel;
|
|
#[Inject]
|
|
protected TeacherValidator $teacherValidator;
|
|
|
|
protected function getModel(): AetherModel
|
|
{
|
|
return $this->teacherModel;
|
|
}
|
|
|
|
protected function getValidator(): AetherValidator
|
|
{
|
|
return $this->teacherValidator;
|
|
}
|
|
} |