This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Ambulatorio;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\Ambulatorio\FechamentoConsultaService;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class FechamentoConsultaController extends Controller
|
||||
{
|
||||
protected $modulo = 'ambulatorio';
|
||||
protected $funcionalidade = 'fechamento-consulta';
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
return response()->json(FechamentoConsultaService::index((object) request()->all()), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function create()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(FechamentoConsultaService::create(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function list()
|
||||
{
|
||||
return response()->json(FechamentoConsultaService::list(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getEquipes()
|
||||
{
|
||||
return response()->json(FechamentoConsultaService::getEquipes(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getOcupacoes()
|
||||
{
|
||||
return response()->json(FechamentoConsultaService::getOcupacoes(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getEspecialidadesWithJornada()
|
||||
{
|
||||
return response()->json(FechamentoConsultaService::getEspecialidadesWithJornada(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getUsuariosWithJornada()
|
||||
{
|
||||
return response()->json(FechamentoConsultaService::getUsuariosWithJornada(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function store()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(FechamentoConsultaService::store(), Response::HTTP_CREATED);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user