init commit
All checks were successful
build-api-image / build (push) Successful in 51s

This commit is contained in:
Antonio Lopes dos Santos
2026-08-04 16:52:02 -03:00
commit afec302c3e
11594 changed files with 1636728 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
<?php
namespace App\Http\Controllers\Ambulatorio;
use App\Http\Controllers\Controller;
use App\Services\Ambulatorio\FechamentoConsultaService;
use Illuminate\Http\Response;
class FechamentoConsultaController extends Controller
{
protected $modulo = 'ambulatorio';
protected $funcionalidade = 'fechamento-consulta';
public function index()
{
$this->auth(__FUNCTION__);
return response()->json(FechamentoConsultaService::index((object) request()->all()), Response::HTTP_OK);
}
public function create()
{
$this->auth(__FUNCTION__);
return response()->json(FechamentoConsultaService::create(), Response::HTTP_OK);
}
public function list()
{
return response()->json(FechamentoConsultaService::list(), Response::HTTP_OK);
}
public function getEquipes()
{
return response()->json(FechamentoConsultaService::getEquipes(), Response::HTTP_OK);
}
public function getOcupacoes()
{
return response()->json(FechamentoConsultaService::getOcupacoes(), Response::HTTP_OK);
}
public function getEspecialidadesWithJornada()
{
return response()->json(FechamentoConsultaService::getEspecialidadesWithJornada(), Response::HTTP_OK);
}
public function getUsuariosWithJornada()
{
return response()->json(FechamentoConsultaService::getUsuariosWithJornada(), Response::HTTP_OK);
}
public function store()
{
$this->auth(__FUNCTION__);
return response()->json(FechamentoConsultaService::store(), Response::HTTP_CREATED);
}
}