60 lines
1.3 KiB
PHP
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
|
|
);
|
|
}
|
|
}
|