Перевод на DDD

This commit is contained in:
brusnitsyn
2026-07-31 17:19:03 +09:00
parent 2dd55b9d11
commit 2c6d4a04cc
48 changed files with 1796 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Infrastructure\Http\Controllers\Web;
use App\Domain\Patient\Actions\GetDepartmentJournalPatientAction;
use Illuminate\Http\Request;
class PatientController
{
public function getDepartmentPatient(
Request $request,
GetDepartmentJournalPatientAction $patientAction
)
{
$departmentId = $request->query('departmentId');
$patients = $patientAction->execute((int) $departmentId);
return response()->json($patients);
}
}