This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Ambulatorio;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\Ambulatorio\GerenciamentoMedicoService;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class GerenciamentoMedicoController extends Controller
|
||||
{
|
||||
protected $modulo = 'ambulatorio';
|
||||
protected $funcionalidade = 'gerenciamento-medico';
|
||||
|
||||
public function datatable()
|
||||
{
|
||||
return GerenciamentoMedicoService::datatable();
|
||||
}
|
||||
|
||||
public function edit($usuarioId)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(GerenciamentoMedicoService::edit($usuarioId), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function list()
|
||||
{
|
||||
return response()->json(GerenciamentoMedicoService::list(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function reschedule()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(GerenciamentoMedicoService::reschedule(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function cancel()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(GerenciamentoMedicoService::cancel(), Response::HTTP_OK);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user