40 lines
966 B
PHP
40 lines
966 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Bpa;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\Bpa\RelatorioInconsistenciaService;
|
|
use Illuminate\Http\Response;
|
|
|
|
class RelatorioInconsistenciaController extends Controller
|
|
{
|
|
protected $modulo = 'bpa';
|
|
protected $funcionalidade = 'relatorio-inconsistencia';
|
|
|
|
public function index()
|
|
{
|
|
$this->auth(__FUNCTION__);
|
|
|
|
return response()->json(RelatorioInconsistenciaService::index(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function list()
|
|
{
|
|
$this->auth(__FUNCTION__);
|
|
|
|
return response()->json(RelatorioInconsistenciaService::list(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function show($id)
|
|
{
|
|
$this->auth(__FUNCTION__);
|
|
|
|
return response()->json(RelatorioInconsistenciaService::show($id), Response::HTTP_OK);
|
|
}
|
|
|
|
public function datatable()
|
|
{
|
|
return datatables()->of(RelatorioInconsistenciaService::datatable())->make(true);
|
|
}
|
|
}
|