Модуль отчетов

This commit is contained in:
brusnitsyn
2026-06-21 23:40:55 +09:00
parent f163b95663
commit bd2cc24b98
27 changed files with 2781 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Services\Reports\Contracts;
use App\Models\Department;
use App\Services\DateRange;
use App\Services\Reports\ReportPayload;
interface ReportDefinition
{
public function code(): string;
public function label(): string;
/**
* Права, любое из которых открывает доступ к просмотру отчёта. Пустой массив
* отчёт доступен всем, у кого есть общий доступ к отчётам (report.view или nurse.report.view).
*
* @return array<int,string>
*/
public function requiredPermissions(): array;
public function build(Department $department, DateRange $dateRange): ReportPayload;
}