Перевод на DDD
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user