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,44 @@
<?php
namespace App\Http\Controllers\Almoxarifado;
use App\Http\Controllers\Controller;
use App\Services\Almoxarifado\BaixaService;
use Illuminate\Http\Response;
class BaixaController extends Controller
{
protected $modulo = 'almoxarifado';
protected $funcionalidade = 'baixa';
public function datatable()
{
return BaixaService::datatable();
}
public function history()
{
return BaixaService::history();
}
public function create($materialId)
{
$this->auth(__FUNCTION__);
return response()->json(BaixaService::create($materialId), Response::HTTP_OK);
}
public function store()
{
$this->auth(__FUNCTION__);
return response()->json(BaixaService::store(), Response::HTTP_CREATED);
}
public function reverse($saidaItemId)
{
$this->auth(__FUNCTION__);
return response()->json(BaixaService::reverse($saidaItemId), Response::HTTP_OK);
}
}