45 lines
1.1 KiB
PHP
45 lines
1.1 KiB
PHP
<?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);
|
|
}
|
|
}
|