Files
rkm-conectasus-ci-sandbox/api/app/Http/Controllers/ProntoAtendimento/FechamentoFaa/FechamentoFaaController.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

60 lines
1.3 KiB
PHP

<?php
namespace App\Http\Controllers\ProntoAtendimento\FechamentoFaa;
use App\Http\Controllers\Controller;
use App\Services\ProntoAtendimento\FechamentoFaa\FechamentoFaaService;
use Illuminate\Http\Response;
class FechamentoFaaController extends Controller
{
protected $modulo = 'pronto-atendimento';
protected $funcionalidade = 'fechamento-faa';
public function list()
{
$this->auth(__FUNCTION__);
return response()->json(
FechamentoFaaService::list(),
Response::HTTP_OK
);
}
public function procedimento()
{
return response()->json(
FechamentoFaaService::getProcedimentosFaa(),
Response::HTTP_OK
);
}
public function index()
{
$this->auth(__FUNCTION__);
return response()->json(
FechamentoFaaService::index(),
Response::HTTP_OK
);
}
public function update($id)
{
$this->auth(__FUNCTION__);
return response()->json(
FechamentoFaaService::update($id),
Response::HTTP_CREATED
);
}
public function cancelarFaa($id)
{
return response()->json(
FechamentoFaaService::cancelarFaa($id),
Response::HTTP_CREATED
);
}
}