This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Almoxarifado;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\Almoxarifado\BalanceteService;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class BalanceteController extends Controller
|
||||
{
|
||||
protected $modulo = 'almoxarifado';
|
||||
protected $funcionalidade = 'balancete';
|
||||
|
||||
public function index()
|
||||
{
|
||||
return response()->json(BalanceteService::index(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function list()
|
||||
{
|
||||
return response()->json(BalanceteService::list(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function checkDate($data)
|
||||
{
|
||||
return response()->json(BalanceteService::checkDate($data), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function store()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(BalanceteService::store(), Response::HTTP_CREATED);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user