This commit is contained in:
Aether
2025-09-25 08:48:23 +08:00
parent 8be88311d4
commit f286e18e71
9 changed files with 57 additions and 347 deletions

View File

@@ -28,16 +28,6 @@ class TeacherService extends AetherCrudService implements TeacherServiceInterfac
#[Inject]
protected TeacherValidator $validator;
protected function getModel(): AetherModel
{
return $this->model;
}
protected function getValidator(): AetherValidator
{
return $this->validator;
}
public function getTeacherById(int $id): array
{
$teacher = Teacher::find($id);
@@ -106,4 +96,14 @@ class TeacherService extends AetherCrudService implements TeacherServiceInterfac
'list' => $list,
];
}
protected function getModel(): AetherModel
{
return $this->model;
}
protected function getValidator(): AetherValidator
{
return $this->validator;
}
}