41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Apac;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\Apac\RelatorioInconsistenciaService;
|
|
use Illuminate\Http\Response;
|
|
|
|
class RelatorioInconsistenciaController extends Controller
|
|
{
|
|
protected $modulo = 'apac';
|
|
protected $funcionalidade = 'relatorio-inconsistencia';
|
|
|
|
public function index()
|
|
{
|
|
$this->auth(__FUNCTION__);
|
|
|
|
return response()->json(RelatorioInconsistenciaService::index(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function create()
|
|
{
|
|
return response()->json(RelatorioInconsistenciaService::create(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function list()
|
|
{
|
|
return response()->json(RelatorioInconsistenciaService::list(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function autocompleteUsuarioExecutante()
|
|
{
|
|
return datatables()->of(RelatorioInconsistenciaService::autocompleteUsuarioExecutante())->toJson();
|
|
}
|
|
|
|
public function autocompleteProcedimento()
|
|
{
|
|
return datatables()->of(RelatorioInconsistenciaService::autocompleteProcedimento())->toJson();
|
|
}
|
|
}
|