34 lines
840 B
PHP
34 lines
840 B
PHP
<?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);
|
|
}
|
|
}
|