44 lines
1.1 KiB
PHP
44 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\TransportePaciente;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\TransportePaciente\ViagemDataService;
|
|
use Illuminate\Http\Response;
|
|
|
|
class ViagemDataController extends Controller
|
|
{
|
|
protected $modulo = 'transporte-paciente';
|
|
protected $funcionalidade = 'relatorio-viagem-data';
|
|
|
|
public function index()
|
|
{
|
|
return response()->json(ViagemDataService::index(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function list()
|
|
{
|
|
return response()->json(ViagemDataService::list(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function getMunicipios()
|
|
{
|
|
return response()->json(ViagemDataService::getMunicipios(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function getMotoristas()
|
|
{
|
|
return response()->json(ViagemDataService::getMotoristas(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function getDestinos()
|
|
{
|
|
return response()->json(ViagemDataService::getDestinos(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function getStatus()
|
|
{
|
|
return response()->json(ViagemDataService::getStatus(), Response::HTTP_OK);
|
|
}
|
|
}
|