init commit
All checks were successful
build-api-image / build (push) Successful in 51s

This commit is contained in:
Antonio Lopes dos Santos
2026-08-04 16:52:02 -03:00
commit afec302c3e
11594 changed files with 1636728 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
<?php
namespace App\Http\Controllers\WebService\Almoxarifado\Cliente;
use App\Http\Controllers\Controller;
use App\Services\WebService\Almoxarifado\Cliente\AprovacaoEntradaService;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
class AprovacaoEntradaController extends Controller
{
protected $modulo = 'web-service';
protected $funcionalidade = 'almoxarifado-cliente-aprovacao-entrada';
public function list()
{
return response()->json(AprovacaoEntradaService::list(), Response::HTTP_OK);
}
public function edit($id)
{
$this->auth(__FUNCTION__);
return response()->json(AprovacaoEntradaService::edit($id), Response::HTTP_OK);
}
public function approve($id)
{
$this->auth(__FUNCTION__);
AprovacaoEntradaService::approve($id);
return response()->noContent();
}
public function reject($id)
{
$this->auth(__FUNCTION__);
AprovacaoEntradaService::reject($id);
return response()->noContent();
}
public function datatable(Request $request)
{
return datatables()
->of(AprovacaoEntradaService::datatable($request))
->skipTotalRecords()
->toJson();
}
}