Files
rkm-conectasus-ci-sandbox/api/app/Http/Controllers/Farmacia/RelatorioDispensacaoPacienteController.php
Antonio Lopes dos Santos afec302c3e
All checks were successful
build-api-image / build (push) Successful in 51s
init commit
2026-08-04 16:52:02 -03:00

43 lines
1.1 KiB
PHP

<?php
namespace App\Http\Controllers\Farmacia;
use App\Http\Controllers\Controller;
use App\Services\Farmacia\RelatorioDispensacaoPacienteService;
use Illuminate\Http\Response;
class RelatorioDispensacaoPacienteController extends Controller
{
protected $modulo = 'farmacia';
protected $funcionalidade = 'relatorio-dispensacao-paciente';
public function index()
{
$this->auth(__FUNCTION__);
return response()->json(RelatorioDispensacaoPacienteService::index(), Response::HTTP_OK);
}
public function create()
{
return response()->json(RelatorioDispensacaoPacienteService::create(), Response::HTTP_OK);
}
public function list()
{
$this->auth(__FUNCTION__);
return response()->json(RelatorioDispensacaoPacienteService::list(), Response::HTTP_OK);
}
public function autocompletePaciente()
{
return datatables()->of(RelatorioDispensacaoPacienteService::autocompletePaciente())->toJson();
}
public function autocompleteMaterial()
{
return datatables()->of(RelatorioDispensacaoPacienteService::autocompleteMaterial())->toJson();
}
}