Files
hyperf_data/app/JsonRpc/Service/TeacherService.php
Aether 9052c7069f ..
2025-10-16 20:06:23 +08:00

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;
}
}