This commit is contained in:
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\TransportePaciente\Agendar;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
|
||||
use App\Services\TransportePaciente\Agendar\AgendarService;
|
||||
use App\Services\TransportePaciente\Agendar\HistoricoService;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class AgendarController extends Controller
|
||||
{
|
||||
protected $modulo = 'transporte-paciente';
|
||||
protected $funcionalidade = 'agendar';
|
||||
|
||||
public function store()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(AgendarService::store(), Response::HTTP_CREATED);
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(AgendarService::show($id), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function editHorario()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(AgendarService::editHorario(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function updateHorario(Request $request)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(AgendarService::updateHorario($request), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function update()
|
||||
{
|
||||
return response()->json(AgendarService::update(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getDestinos()
|
||||
{
|
||||
return response()->json(AgendarService::getDestinos(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getPontos($id)
|
||||
{
|
||||
return response()->json(AgendarService::getPontos($id), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getVeiculos()
|
||||
{
|
||||
return response()->json(AgendarService::getVeiculos(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getJornadas()
|
||||
{
|
||||
return response()->json(AgendarService::getJornadas(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getAgendados()
|
||||
{
|
||||
return response()->json(AgendarService::getAgendados(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getAgendadosPaciente()
|
||||
{
|
||||
return response()->json(AgendarService::getAgendadosPaciente(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getMunicipios()
|
||||
{
|
||||
return response()->json(AgendarService::getMunicipios(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getLocais()
|
||||
{
|
||||
return response()->json(AgendarService::getLocais(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getHorarios()
|
||||
{
|
||||
return response()->json(AgendarService::getHorarios(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getAgendamentos()
|
||||
{
|
||||
return response()->json(AgendarService::getAgendamentos(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getFaltasPaciente()
|
||||
{
|
||||
return response()->json(AgendarService::getFaltasPaciente(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function salvarObservacao()
|
||||
{
|
||||
return response()->json(AgendarService::salvarObservacao(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getHistoricos($id)
|
||||
{
|
||||
return response()->json(AgendarService::getHistoricos($id), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getTipoPassageiros()
|
||||
{
|
||||
return response()->json(AgendarService::getTipoPassageiros(), Response::HTTP_OK);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user