This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Imunizacao;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\Imunizacao\ConsultaEstoqueService;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class ConsultaEstoqueController extends Controller
|
||||
{
|
||||
protected $modulo = 'imunizacao';
|
||||
protected $funcionalidade = 'consulta-estoque';
|
||||
|
||||
public function index()
|
||||
{
|
||||
return response()->json(ConsultaEstoqueService::index(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function list()
|
||||
{
|
||||
return response()->json(ConsultaEstoqueService::list(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getEstoque()
|
||||
{
|
||||
return response()->json(ConsultaEstoqueService::getEstoque(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getUnidades()
|
||||
{
|
||||
return response()->json(ConsultaEstoqueService::getUnidades(), Response::HTTP_OK);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user