44 lines
1.2 KiB
PHP
44 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Integracao\Ria;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\Integracao\Ria\GerenciamentoEnvioService;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Response;
|
|
|
|
class GerenciamentoEnvioController extends Controller
|
|
{
|
|
protected $modulo = 'integracao';
|
|
protected $funcionalidade = 'ria-gerenciamento-envio';
|
|
|
|
public function index()
|
|
{
|
|
return response()->json(GerenciamentoEnvioService::index(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function create()
|
|
{
|
|
$this->auth(__FUNCTION__);
|
|
|
|
return response()->json(GerenciamentoEnvioService::create(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function send(Request $request)
|
|
{
|
|
$this->auth(__FUNCTION__);
|
|
|
|
return response()->json(GerenciamentoEnvioService::send($request), Response::HTTP_OK);
|
|
}
|
|
|
|
public function list()
|
|
{
|
|
return response()->json(GerenciamentoEnvioService::list(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function getInconsistencias($documentoImunologicoRotinaId)
|
|
{
|
|
return response()->json(GerenciamentoEnvioService::getInconsistencias($documentoImunologicoRotinaId), Response::HTTP_OK);
|
|
}
|
|
}
|