..
This commit is contained in:
28
app/JsonRpc/Service/TeacherService.php
Normal file
28
app/JsonRpc/Service/TeacherService.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user