This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user