33 lines
827 B
PHP
33 lines
827 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Integracao\Esus;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\Integracao\Esus\GerenciamentoEnvioService;
|
|
use Illuminate\Http\Response;
|
|
|
|
class GerenciamentoEnvioController extends Controller
|
|
{
|
|
protected $modulo = 'integracao';
|
|
protected $funcionalidade = 'esus-gerenciamento-envio';
|
|
|
|
public function index()
|
|
{
|
|
$this->auth(__FUNCTION__);
|
|
|
|
return response()->json(GerenciamentoEnvioService::index(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function list()
|
|
{
|
|
$this->auth(__FUNCTION__);
|
|
|
|
return response()->json(GerenciamentoEnvioService::list(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function getInconsistencia($id)
|
|
{
|
|
return response()->json(GerenciamentoEnvioService::getInconsistencia($id), Response::HTTP_OK);
|
|
}
|
|
}
|