refactor(Pastas): Reestrutura pastas do projeto
This commit is contained in:
parent
8cb0de2928
commit
f2b2181136
291 changed files with 5119 additions and 412 deletions
|
|
@ -6,7 +6,7 @@ import { useParams } from 'next/navigation';
|
|||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { useGUsuarioReadHooks } from '@/app/(protected)/(administrativo)/_hooks/g_usuario/useGUsuarioReadHooks';
|
||||
import Usuario from '@/app/(protected)/(administrativo)/_interfaces/GUsuarioInterface';
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
|
||||
export default function UsuarioDetalhes() {
|
||||
const params = useParams();
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import { Button } from '@/components/ui/button';
|
|||
import Link from 'next/link';
|
||||
import { useGUsuarioIndexHook } from '../../_hooks/g_usuario/useGUsuarioIndexHook';
|
||||
import { useEffect } from 'react';
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
|
||||
export default function UsuarioPage() {
|
||||
const { usuarios, fetchUsuarios } = useGUsuarioIndexHook();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use server';
|
||||
|
||||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
export default async function GUsuarioDeleteData(usuarioId: number) {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use server';
|
||||
|
||||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
export default async function GUsuarioIndexData() {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use server';
|
||||
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import API from '@/shared/services/api/Api';
|
||||
|
||||
export default async function GUsuarioLoginData(form: any) {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use server';
|
||||
|
||||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
export default async function GUsuarioReadData(usuarioId: number) {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use server';
|
||||
|
||||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
export default async function GUsuarioSaveData(form: any) {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import { useState } from 'react';
|
||||
import Usuario from '../../_interfaces/GUsuarioInterface';
|
||||
import GUsuarioIndex from '../../_services/g_usuario/GUsuarioIndex';
|
||||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
|
||||
export const useGUsuarioIndexHook = () => {
|
||||
const { setResponse } = useResponse();
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import { useState } from 'react';
|
||||
import Usuario from '../../_interfaces/GUsuarioInterface';
|
||||
import GUsuarioRead from '../../_services/g_usuario/GUsuarioRead';
|
||||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
|
||||
export const useGUsuarioReadHooks = () => {
|
||||
const { setResponse } = useResponse();
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import { useState } from 'react';
|
||||
import Usuario from '../../_interfaces/GUsuarioInterface';
|
||||
import GUsuarioSave from '../../_services/g_usuario/GUsuarioSave';
|
||||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
|
||||
export const useGUsuarioSaveHook = () => {
|
||||
const { setResponse } = useResponse();
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
import GCidadeTable from '../../_components/g_cidade/GCidadeTable';
|
||||
import GCidadeForm from '../../_components/g_cidade/GCidadeForm';
|
||||
|
||||
|
|
@ -11,11 +11,11 @@ import { useGCidadeReadHook } from '../../_hooks/g_cidade/useGCidadeReadHook';
|
|||
import { useGCidadeSaveHook } from '../../_hooks/g_cidade/useGCidadeSaveHook';
|
||||
import { useGCidadeRemoveHook } from '../../_hooks/g_cidade/useGCidadeRemoveHook';
|
||||
|
||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDialog';
|
||||
|
||||
import GCidadeInterface from '../../_interfaces/GCidadeInterface';
|
||||
import Header from '@/app/_components/structure/Header';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
export default function GCidadePage() {
|
||||
// Hooks para leitura e salvamento
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDialog';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
|
||||
import Header from '@/app/_components/structure/Header';
|
||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
import GMedidaTipoTable from '../../_components/g_medidatipo/GMedidaTipoTable';
|
||||
import GMedidaTipoForm from '../../_components/g_medidatipo/GMedidaTipoForm';
|
||||
|
||||
|
|
@ -16,7 +16,7 @@ import { useGMedidaTipoSaveHook } from '../../_hooks/g_medidatipo/useGMedidaTipo
|
|||
import { useGMedidaTipoRemoveHook } from '../../_hooks/g_medidatipo/useGMedidaTipoRemoveHook';
|
||||
|
||||
import { GMedidaTipoInterface } from '../../_interfaces/GMedidaTipoInterface';
|
||||
import { SituacoesEnum } from '@/enums/SituacoesEnum';
|
||||
import { SituacoesEnum } from '@/shared/enums/SituacoesEnum';
|
||||
|
||||
const initialMedidaTipo: GMedidaTipoInterface = {
|
||||
medida_tipo_id: 0,
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDialog';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
|
||||
import Header from '@/app/_components/structure/Header';
|
||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
import GTBBairroTable from '../../_components/g_tb_bairro/GTBBairroTable';
|
||||
import GTBBairroForm from '../../_components/g_tb_bairro/GTBBairroForm';
|
||||
|
||||
|
|
@ -16,7 +16,7 @@ import { useGTBBairroSaveHook } from '../../_hooks/g_tb_bairro/useGTBBairroSaveH
|
|||
import { useGTBBairroRemoveHook } from '../../_hooks/g_tb_bairro/useGTBBairroRemoveHook';
|
||||
|
||||
import { GTBBairroInterface } from '../../_interfaces/GTBBairroInterface';
|
||||
import { SituacoesEnum } from '@/enums/SituacoesEnum';
|
||||
import { SituacoesEnum } from '@/shared/enums/SituacoesEnum';
|
||||
|
||||
const initialBairro: GTBBairroInterface = {
|
||||
sistema_id: null,
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||
import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDialog';
|
||||
|
||||
import Header from '@/app/_components/structure/Header';
|
||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
import GTBEstadoCivilTable from '../../_components/g_tb_estadocivil/GTBEstadoCivilTable';
|
||||
import GTBEstadoCivilForm from '../../_components/g_tb_estadocivil/GTBEstadoCivilForm';
|
||||
|
||||
|
|
@ -15,7 +15,7 @@ import { useGTBEstadoCivilSaveHook } from '../../_hooks/g_tb_estadocivil/useGTBE
|
|||
import { useGTBEstadoCivilRemoveHook } from '../../_hooks/g_tb_estadocivil/useGTBEstadoCivilRemoveHook';
|
||||
|
||||
import { GTBEstadoCivilInterface } from '../../_interfaces/GTBEstadoCivilInterface';
|
||||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
|
||||
const initalEstadoCivil: GTBEstadoCivilInterface = {
|
||||
tb_estadocivil_id: 0,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
import GTBProfissaoTable from '../../_components/g_tb_profissao/GTBProfissaoTable';
|
||||
import GTBProfissaoForm from '../../_components/g_tb_profissao/GTBProfissaoForm';
|
||||
|
||||
|
|
@ -11,11 +11,11 @@ import { useGTBProfissaoReadHook } from '../../_hooks/g_tb_profissao/useGTBProfi
|
|||
import { useGTBProfissaoSaveHook } from '../../_hooks/g_tb_profissao/useGTBProfissaoSaveHook';
|
||||
import { useGTBProfissaoRemoveHook } from '../../_hooks/g_tb_profissao/useGTBProfissaoRemoveHook';
|
||||
|
||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDialog';
|
||||
|
||||
import GTBProfissaoInterface from '../../_interfaces/GTBProfissaoInterface';
|
||||
import Header from '@/app/_components/structure/Header';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
export default function TTBAndamentoServico() {
|
||||
// Hooks para leitura e salvamento
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
import GTBRegimeBensTable from '../../_components/g_tb_regimebens/GTBRegimeBensTable';
|
||||
import GTBRegimeBensForm from '../../_components/g_tb_regimebens/GTBRegimeBensForm';
|
||||
|
||||
|
|
@ -11,11 +11,11 @@ import { useGTBRegimeBensReadHook } from '../../_hooks/g_tb_regimebens/useGTBReg
|
|||
import { useGTBRegimeBensSaveHook } from '../../_hooks/g_tb_regimebens/useGTBRegimeBensSaveHook';
|
||||
import { useGTBRegimeBensRemoveHook } from '../../_hooks/g_tb_regimebens/useGTBRegimeBensRemoveHook';
|
||||
|
||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDialog';
|
||||
|
||||
import GTBRegimeBensInterface from '../../_interfaces/GTBRegimeBensInterface';
|
||||
import Header from '@/app/_components/structure/Header';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
export default function TTBAndamentoServico() {
|
||||
// Hooks para leitura e salvamento
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
import GTBRegimeComunhaoTable from '../../_components/g_tb_regimecomunhao/GTBRegimeComunhaoTable';
|
||||
import GTBRegimeComunhaoForm from '../../_components/g_tb_regimecomunhao/GTBRegimeComunhaoForm';
|
||||
|
||||
|
|
@ -11,11 +11,11 @@ import { useGTBRegimeComunhaoReadHook } from '../../_hooks/g_tb_regimecomunhao/u
|
|||
import { useGTBRegimeComunhaoSaveHook } from '../../_hooks/g_tb_regimecomunhao/useGTBRegimeComunhaoSaveHook';
|
||||
import { useGTBRegimeComunhaoRemoveHook } from '../../_hooks/g_tb_regimecomunhao/useGTBRegimeComunhaoRemoveHook';
|
||||
|
||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDialog';
|
||||
|
||||
import GTBRegimeComunhaoInterface from '../../_interfaces/GTBRegimeComunhaoInterface';
|
||||
import Header from '@/app/_components/structure/Header';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
export default function TTBAndamentoServico() {
|
||||
// Hooks para leitura e salvamento
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||
import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDialog';
|
||||
|
||||
import Header from '@/app/_components/structure/Header';
|
||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
import GTBTipoLogradouroTable from '../../_components/g_tb_tipologradouro/GTBTipoLogradouroTable';
|
||||
import GTBTipoLogradouroForm from '../../_components/g_tb_tipologradouro/GTBTipoLogradouroForm';
|
||||
|
||||
|
|
@ -16,7 +16,7 @@ import { useGTBTipoLogradouroRemoveHook } from '../../_hooks/g_tb_tipologradouro
|
|||
|
||||
import { GTBTipoLogradouroInterface } from '../../_interfaces/GTBTipoLogradouroInterface';
|
||||
|
||||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
|
||||
export default function TTBAndamentoServico() {
|
||||
// Controle de exibição de respostas
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
import TCensecTable from '../../_components/t_censec/TCensecTable';
|
||||
import TCensecForm from '../../_components/t_censec/TCensecForm';
|
||||
|
||||
|
|
@ -11,11 +11,11 @@ import { useTCensecReadHook } from '../../_hooks/t_censec/useTCensecReadHook';
|
|||
import { useTCensecSaveHook } from '../../_hooks/t_censec/useTCensecSaveHook';
|
||||
import { useTCensecDeleteHook } from '../../_hooks/t_censec/useTCensecDeleteHook';
|
||||
|
||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDialog';
|
||||
|
||||
import TCensecInterface from '../../_interfaces/TCensecInterface';
|
||||
import Header from '@/app/_components/structure/Header';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
export default function TTBAndamentoServico() {
|
||||
// Controle de estado do botão
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
import { useEffect, useState, useCallback } from "react";
|
||||
import { Card, CardContent } from "@/components/ui/card";
|
||||
import { useConfirmDialog } from "@/app/_components/confirm_dialog/useConfirmDialog";
|
||||
import { useConfirmDialog } from "@/shared/components/confirmDialog/useConfirmDialog";
|
||||
|
||||
import Header from "@/app/_components/structure/Header";
|
||||
import ConfirmDialog from "@/app/_components/confirm_dialog/ConfirmDialog";
|
||||
import Loading from "@/app/_components/loading/loading";
|
||||
import Header from "@/shared/components/structure/Header";
|
||||
import ConfirmDialog from "@/shared/components/confirmDialog/ConfirmDialog";
|
||||
import Loading from "@/shared/components/loading/loading";
|
||||
|
||||
import TCensecTipoAtoTable from "../../_components/t_censec_tipoato/TCensecTipoAtoTable";
|
||||
import TCensecTipoAtoForm from "../../_components/t_censec_tipoato/TCensecTipoAtoForm";
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDialog';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
|
||||
import Header from '@/app/_components/structure/Header';
|
||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
|
||||
import TCensecNaturezaLitigioTable from '../../_components/t_censecnaturezalitigio/TCensecNaturezaLitigioTable';
|
||||
import TCensecNaturezaLitigioForm from '../../_components/t_censecnaturezalitigio/TCensecNaturezaLitigioForm';
|
||||
|
|
@ -17,7 +17,7 @@ import { useTCensecNaturezaLitigioSaveHook } from '../../_hooks/t_censecnatureza
|
|||
import { useTCensecNaturezaLitigioRemoveHook } from '../../_hooks/t_censecnaturezalitigio/useTCensecNaturezaLitigioRemoveHook';
|
||||
|
||||
import { TCensecNaturezaLitigioInterface } from '../../_interfaces/TCensecNaturezaLitigioInterface';
|
||||
import { SituacoesEnum } from '@/enums/SituacoesEnum';
|
||||
import { SituacoesEnum } from '@/shared/enums/SituacoesEnum';
|
||||
|
||||
const initialCensecNaturezaLitigio: TCensecNaturezaLitigioInterface = {
|
||||
censec_naturezalitigio_id: 0,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { useParams } from 'next/navigation';
|
|||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import MainEditor from '@/components/MainEditor';
|
||||
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
import { useTMinutaReadHook } from '../../../../_hooks/t_minuta/useTMinutaReadHook';
|
||||
import { TMinutaInterface } from '../../../../_interfaces/TMinutaInterface';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||
import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDialog';
|
||||
|
||||
import Header from '@/app/_components/structure/Header';
|
||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
|
||||
import TMinutaTable from '../../_components/t_minuta/TMinutaTable';
|
||||
import TMinutaForm from '../../_components/t_minuta/TMinutaForm';
|
||||
|
|
|
|||
|
|
@ -3,19 +3,19 @@
|
|||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
import TTBAndamentoServicoTable from '../../_components/t_tb_andamentoservico/TTBAndamentoServicoTable';
|
||||
import TTBAndamentoServicoForm from '../../_components/t_tb_andamentoservico/TTBAndamentoServicoForm';
|
||||
|
||||
import { useTTBAndamentoServicoReadHook } from '../../_hooks/t_tb_andamentoservico/useTTBAndamentoServicoReadHook';
|
||||
import { useTTBAndamentoServicoSaveHook } from '../../_hooks/t_tb_andamentoservico/useTTBAndamentoServicoSaveHook';
|
||||
|
||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDialog';
|
||||
|
||||
import TTBAndamentoServicoInterface from '../../_interfaces/TTBAndamentoServicoInterface';
|
||||
import { useTTBAndamentoServicoDeleteHook } from '../../_hooks/t_tb_andamentoservico/useTTBAndamentoServicoDeleteHook';
|
||||
import Header from '@/app/_components/structure/Header';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
|
||||
export default function TTBAndamentoServico() {
|
||||
// Hooks para leitura e salvamento
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
|
||||
import Loading from '@/app/_components/loading/loading';
|
||||
import Header from '@/app/_components/structure/Header';
|
||||
import Loading from '@/shared/components/loading/loading';
|
||||
import Header from '@/shared/components/structure/Header';
|
||||
import TTBReconhecimentoTipoTable from '../../_components/t_tb_reconhecimentotipo/TTBReconhecimentoTipoTable';
|
||||
import TTBReconhecimentoTipoForm from '../../_components/t_tb_reconhecimentotipo/TTBReconhecimentoTipoForm';
|
||||
|
||||
|
|
@ -12,8 +12,8 @@ import { useTTBReconhecimentoTipoReadHook } from '../../_hooks/t_tb_reconhecimen
|
|||
import { useTTBReconhecimentoTipoSaveHook } from '../../_hooks/t_tb_reconhecimentotipo/useTTBReconhecimentoTipoSaveHook';
|
||||
import { useTTBReconhecimentoTipoDeleteHook } from '../../_hooks/t_tb_reconhecimentotipo/useTTBReconhecimentoTipoDeleteHook';
|
||||
|
||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||
import ConfirmDialog from '@/shared/components/confirmDialog/ConfirmDialog';
|
||||
import { useConfirmDialog } from '@/shared/components/confirmDialog/useConfirmDialog';
|
||||
|
||||
import TTBReconhecimentoTipoInterface from '../../_interfaces/TTBReconhecimentoTipoInterface';
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import {
|
|||
FormMessage,
|
||||
} from '@/components/ui/form';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
import { GMedidaTipoSchema } from '../../_schemas/GMedidaTipoSchema';
|
||||
import { GMedidaTipoInterface } from '../../_interfaces/GMedidaTipoInterface';
|
||||
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ import { Input } from '@/components/ui/input';
|
|||
import { Label } from '@/components/ui/label';
|
||||
|
||||
import { GTBBairroSchema } from '../../_schemas/GTBBairroSchema';
|
||||
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
|
||||
import { SituacoesEnum } from '@/enums/SituacoesEnum';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
import { SituacoesEnum } from '@/shared/enums/SituacoesEnum';
|
||||
|
||||
type FormValues = z.infer<typeof GTBBairroSchema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { useEffect } from 'react';
|
|||
import { useForm, Controller } from 'react-hook-form';
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
|
||||
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Checkbox } from '@/components/ui/checkbox';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import {
|
|||
import { Input } from '@/components/ui/input';
|
||||
import { Label } from '@/components/ui/label';
|
||||
|
||||
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
|
||||
import { GTBTipoLogradouroSchema } from '../../_schemas/GTBTipoLogradouroSchema';
|
||||
import { GTBTipoLogradouroInterface } from '../../_interfaces/GTBTipoLogradouroInterface';
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ import { Input } from '@/components/ui/input';
|
|||
import { Label } from '@/components/ui/label';
|
||||
|
||||
import { TCensecSchema } from '../../_schemas/TCensecSchema';
|
||||
import { SituacoesEnum } from '@/enums/SituacoesEnum';
|
||||
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
|
||||
import { SituacoesEnum } from '@/shared/enums/SituacoesEnum';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
|
||||
type FormValues = z.infer<typeof TCensecSchema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { useEffect } from 'react';
|
|||
import { useForm, Controller } from 'react-hook-form';
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
|
||||
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
|
||||
import LoadingButton from '@/shared/components/loadingButton/LoadingButton';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Checkbox } from '@/components/ui/checkbox';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
// Importa o serviço de API que será utilizado para realizar requisições HTTP
|
||||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
|
||||
// Importa o enum que contém os métodos HTTP disponíveis (GET, POST, PUT, DELETE)
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
// Importa função que encapsula chamadas assíncronas e trata erros automaticamente
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
// Função assíncrona que implementa a lógica de salvar (criar/atualizar) uma cidade
|
||||
async function executeGcidadeIndexData() {
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
// Importa o serviço de API que será utilizado para realizar requisições HTTP
|
||||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
|
||||
// Importa o enum que contém os métodos HTTP disponíveis (GET, POST, PUT, DELETE)
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
// Importa a interface tipada que define a estrutura dos dados de uma cidade
|
||||
import GCidadeInterface from '../../_interfaces/GCidadeInterface';
|
||||
|
||||
// Importa função que encapsula chamadas assíncronas e trata erros automaticamente
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
// Função assíncrona que implementa a lógica de salvar (criar/atualizar) uma cidade
|
||||
async function executeGcidadeRemoveData(data: GCidadeInterface) {
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
// Importa o serviço de API que será utilizado para realizar requisições HTTP
|
||||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
|
||||
// Importa o enum que contém os métodos HTTP disponíveis (GET, POST, PUT, DELETE)
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
// Importa a interface tipada que define a estrutura dos dados de uma cidade
|
||||
import GCidadeInterface from '../../_interfaces/GCidadeInterface';
|
||||
|
||||
// Importa função que encapsula chamadas assíncronas e trata erros automaticamente
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
// Função assíncrona que implementa a lógica de salvar (criar/atualizar) uma cidade
|
||||
async function executeGcidadeSaveData(data: GCidadeInterface) {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
async function executeGMedidaTipoIndexData() {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { GMedidaTipoInterface } from '../../_interfaces/GMedidaTipoInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
async function executeGMedidaTipoRemoveData(data: GMedidaTipoInterface) {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { GMedidaTipoInterface } from '../../_interfaces/GMedidaTipoInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
async function executeGMedidaTipoSaveData(data: GMedidaTipoInterface) {
|
||||
const isUpdate = Boolean(data.medida_tipo_id);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
async function executeGTBBairroIndexData() {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { GTBBairroInterface } from '../../_interfaces/GTBBairroInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
async function executeGTBBairroRemoveData(data: GTBBairroInterface) {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { GTBBairroInterface } from '../../_interfaces/GTBBairroInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
async function executeGTBBairroSaveData(data: GTBBairroInterface) {
|
||||
const isUpdate = Boolean(data.tb_bairro_id);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
async function executeGTBEstadoCivilIndexData() {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { GTBEstadoCivilInterface } from '../../_interfaces/GTBEstadoCivilInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
async function executeGTBEstadoCivilRemoveData(data: GTBEstadoCivilInterface) {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { GTBEstadoCivilInterface } from '../../_interfaces/GTBEstadoCivilInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
async function executeGTBEstadoCivilSaveData(data: GTBEstadoCivilInterface) {
|
||||
const isUpdate = Boolean(data.tb_estadocivil_id);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
export default async function GTBProfissoesIndexData() {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import GTBProfissaoInterface from '../../_interfaces/GTBProfissaoInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
export default async function GTBProfissaoRemoveData(data: GTBProfissaoInterface) {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import GTBProfissaoInterface from '../../_interfaces/GTBProfissaoInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
export default async function GTBProfissaoSaveData(data: GTBProfissaoInterface) {
|
||||
const isUpdate = Boolean(data.tb_profissao_id);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
export default async function GTBRegimeBensIndexData() {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import GTBRegimeBensInterface from '../../_interfaces/GTBRegimeBensInterface';
|
||||
|
||||
export default async function GTBRegimeBensRemoveData(data: GTBRegimeBensInterface) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import GTBRegimeBensInterface from '../../_interfaces/GTBRegimeBensInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
async function executeGTBRegimeBensSaveData(data: GTBRegimeBensInterface) {
|
||||
throw new Error('Nome e email são obrigatórios');
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
async function executeGTBTipoLogradouroIndexData() {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { GTBTipoLogradouroInterface } from '../../_interfaces/GTBTipoLogradouroInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
async function executeGTBTipoLogradouroRemoveData(data: GTBTipoLogradouroInterface) {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { GTBTipoLogradouroInterface } from '../../_interfaces/GTBTipoLogradouroInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
async function executeGTBTipoLogradouroSaveData(data: GTBTipoLogradouroInterface) {
|
||||
const isUpdate = Boolean(data.tb_tipologradouro_id);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import GTBRegimeComunhaoInterface from '../../_interfaces/GTBRegimeComunhaoInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
export default async function GTBRegimeComunhaoIndexData() {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import GTBRegimeComunhaoInterface from '../../_interfaces/GTBRegimeComunhaoInterface';
|
||||
|
||||
export default async function GTBRegimeComunhaoRemoveData(data: GTBRegimeComunhaoInterface) {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import GTBRegimeComunhaoInterface from '../../_interfaces/GTBRegimeComunhaoInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
export default async function GTBRegimeComunhaoSaveData(data: GTBRegimeComunhaoInterface) {
|
||||
const isUpdate = Boolean(data.tb_regimecomunhao_id);
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
// Importa a classe API responsável por centralizar chamadas HTTP
|
||||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
|
||||
// Importa o enum de métodos HTTP (GET, POST, PUT, DELETE, etc.)
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
// Exporta por padrão a função assíncrona GUfIndexData
|
||||
export default async function GUfIndexData() {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import TCensecInterface from '../../_interfaces/TCensecInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
async function executeTCensecDeleteData(data: TCensecInterface) {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
async function executeTCensecIndexData() {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import TCensecInterface from '../../_interfaces/TCensecInterface';
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
async function executeTCensecSaveData(data: TCensecInterface) {
|
||||
const isUpdate = Boolean(data.censec_id);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
async function executeTCensecNaturezaLitigioIndexData() {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { TCensecNaturezaLitigioInterface } from '../../_interfaces/TCensecNaturezaLitigioInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
async function executeTCensecNaturezaLitigioRemoveData(data: TCensecNaturezaLitigioInterface) {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { TCensecNaturezaLitigioInterface } from '../../_interfaces/TCensecNaturezaLitigioInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
async function executeTCensecNaturezaLitigioSaveData(data: TCensecNaturezaLitigioInterface) {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import API from "@/services/api/Api";
|
||||
import { Methods } from "@/services/api/enums/ApiMethodEnum";
|
||||
import API from "@/shared/services/api/Api";
|
||||
import { Methods } from "@/shared/services/api/enums/ApiMethodEnum";
|
||||
import TCensecTipoAtoMockDeDados from "./mockCensecTipoAto";
|
||||
import { withClientErrorHandler } from "@/actions/withClientErrorHandler/withClientErrorHandler";
|
||||
import { withClientErrorHandler } from "@/shared/actions/withClientErrorHandler/withClientErrorHandler";
|
||||
|
||||
const useMock = true
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import API from "@/services/api/Api";
|
||||
import API from "@/shared/services/api/Api";
|
||||
import { TCensecTipoAtoInterface } from "../../_interfaces/TCensecTipoAtoInterface";
|
||||
import { Methods } from "@/services/api/enums/ApiMethodEnum";
|
||||
import { withClientErrorHandler } from "@/actions/withClientErrorHandler/withClientErrorHandler";
|
||||
import { Methods } from "@/shared/services/api/enums/ApiMethodEnum";
|
||||
import { withClientErrorHandler } from "@/shared/actions/withClientErrorHandler/withClientErrorHandler";
|
||||
|
||||
async function executeTCensecTipoAtoRemoveData(data: TCensecTipoAtoInterface) {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import API from "@/services/api/Api";
|
||||
import API from "@/shared/services/api/Api";
|
||||
import { TCensecTipoAtoInterface } from "../../_interfaces/TCensecTipoAtoInterface";
|
||||
import { Methods } from "@/services/api/enums/ApiMethodEnum";
|
||||
import { withClientErrorHandler } from "@/actions/withClientErrorHandler/withClientErrorHandler";
|
||||
import { Methods } from "@/shared/services/api/enums/ApiMethodEnum";
|
||||
import { withClientErrorHandler } from "@/shared/actions/withClientErrorHandler/withClientErrorHandler";
|
||||
|
||||
async function executeTCensecTipoAtoSaveData(data: TCensecTipoAtoInterface) {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import { MinutaMockDeDadosPorId } from './mockMinuta';
|
||||
|
||||
const useMock = true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import MinutaMockDeDados from './mockMinuta';
|
||||
|
||||
const useMock = true;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { TMinutaInterface } from '../../_interfaces/TMinutaInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
export default async function TMinutaRemoveData(data: TMinutaInterface) {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { TMinutaInterface } from '../../_interfaces/TMinutaInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
export default async function TMinutaSaveData(data: TMinutaInterface) {
|
||||
const isUpdate = Boolean(data.t_minuta_id);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use server';
|
||||
|
||||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
export default async function TTBAndamentoServicoIndexData() {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
'use server';
|
||||
|
||||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import TTBAndamentoServicoInteface from '../../_interfaces/TTBAndamentoServicoInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
export default async function TTBAndamentoServicoRemoveData(
|
||||
tTBAndamentoServico: TTBAndamentoServicoInteface,
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
'use server';
|
||||
|
||||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import TTBAndamentoServicoInteface from '../../_interfaces/TTBAndamentoServicoInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import { withClientErrorHandler } from '@/shared/actions/withClientErrorHandler/withClientErrorHandler';
|
||||
|
||||
async function executeTTBAndamentoServicoSaveData(data: TTBAndamentoServicoInteface) {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import API from '@/services/api/Api';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import TTBReconhecimentoTipoInterface from '../../_interfaces/TTBReconhecimentoTipoInterface';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
export default async function TTBReconhecimentoTipoDeleteData(
|
||||
data: TTBReconhecimentoTipoInterface,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use server';
|
||||
|
||||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
|
||||
export default async function TTBReconhecimentoTipoIndexData() {
|
||||
const api = new API();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import API from '@/services/api/Api';
|
||||
import { Methods } from '@/services/api/enums/ApiMethodEnum';
|
||||
import API from '@/shared/services/api/Api';
|
||||
import { Methods } from '@/shared/services/api/enums/ApiMethodEnum';
|
||||
import TTBReconhecimentoTipoInterface from '../../_interfaces/TTBReconhecimentoTipoInterface';
|
||||
|
||||
export default async function TTBReconhecimentoTipoSaveData(data: TTBReconhecimentoTipoInterface) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext'; // Contexto global para gerenciar respostas da API
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext'; // Contexto global para gerenciar respostas da API
|
||||
import { useState } from 'react';
|
||||
import { GCidadeIndexService } from '../../_services/g_cidade/GCidadeIndexService'; // Serviço que busca a lista de cidades
|
||||
import GCidadeInterface from '../../_interfaces/GCidadeInterface'; // Interface tipada da cidade
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from "@/app/_response/ResponseContext"; // Contexto global para gerenciar respostas da API
|
||||
import { useResponse } from "@/shared/components/response/ResponseContext"; // Contexto global para gerenciar respostas da API
|
||||
import GCidadeInterface from "../../_interfaces/GCidadeInterface"; // Interface tipada da cidade
|
||||
import { GCidadeRemoveData } from "../../_data/GCidade/GCidadeRemoveData"; // Função que remove a cidade via API
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from 'react';
|
||||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import GCidadeInterface from '../../_interfaces/GCidadeInterface';
|
||||
import { GCidadeSaveService } from '../../_services/g_cidade/GCidadeSaveService';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { useState } from 'react';
|
||||
import { GMedidaTipoInterface } from '../../_interfaces/GMedidaTipoInterface';
|
||||
import { GMedidaTipoIndexService } from '../../_services/g_medidatipo/GMedidaTipoIndexService';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { GMedidaTipoInterface } from '../../_interfaces/GMedidaTipoInterface';
|
||||
import { GMedidaTipoRemoveService } from '../../_services/g_medidatipo/GMedidaTipoRemoveService';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { useState } from 'react';
|
||||
import { GMedidaTipoInterface } from '../../_interfaces/GMedidaTipoInterface';
|
||||
import { GMedidaTipoSaveService } from '../../_services/g_medidatipo/GMedidaTipoSaveService';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { use, useState } from 'react';
|
||||
import { GTBBairroInterface } from '../../_interfaces/GTBBairroInterface';
|
||||
import { GTBBairroIndexService } from '../../_services/g_tb_bairro/GTBBairroIndexService';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { GTBBairroInterface } from '../../_interfaces/GTBBairroInterface';
|
||||
import { GTBBairroRemoveService } from '../../_services/g_tb_bairro/GTBBairroRemoveService';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { useState } from 'react';
|
||||
import { GTBBairroInterface } from '../../_interfaces/GTBBairroInterface';
|
||||
import { GTBBairroSaveService } from '../../_services/g_tb_bairro/GTBBairroSaveService';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { useState } from 'react';
|
||||
import { GTBEstadoCivilInterface } from '../../_interfaces/GTBEstadoCivilInterface';
|
||||
import { GTBEstadoCivilIndexService } from '../../_services/g_tb_estadocivil/GTBEstadoCivilIndexService';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { GTBEstadoCivilInterface } from '../../_interfaces/GTBEstadoCivilInterface';
|
||||
import { GTBEstadoCivilRemoveService } from '../../_services/g_tb_estadocivil/GTBEstadoCivilRemoveService';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { useState } from 'react';
|
||||
import { GTBEstadoCivilInterface } from '../../_interfaces/GTBEstadoCivilInterface';
|
||||
import { GTBEstadoCivilSaveService } from '../../_services/g_tb_estadocivil/GTBEstadoCivilSaveService';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { useState } from 'react';
|
||||
import GTBProfissaoInterface from '../../_interfaces/GTBProfissaoInterface';
|
||||
import GTBProfissaoIndexService from '../../_services/g_tb_profissao/GTBProfissaoIndexService';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import GTBProfissaoInterface from '../../_interfaces/GTBProfissaoInterface';
|
||||
import GTBProfissaoRemoveService from '../../_services/g_tb_profissao/GTBProfissaoRemoveService';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { useState } from 'react';
|
||||
import GTBProfissaoInterface from '../../_interfaces/GTBProfissaoInterface';
|
||||
import GTBProfissaoSaveService from '../../_services/g_tb_profissao/GTBProfissaoSaveService';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { useState } from 'react';
|
||||
import GTBRegimeBensIndexService from '../../_services/g_tb_regimebens/GTBRegimeBensIndexService';
|
||||
import GTBRegimeBensInterface from '../../_interfaces/GTBRegimeBensInterface';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import GTBRegimeBensInterface from '../../_interfaces/GTBRegimeBensInterface';
|
||||
import GTBRegimeBensRemoveData from '../../_data/GTBRegimeBens/GTBRegimeBensRemoveData';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from 'react';
|
||||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import GTBRegimeBensInterface from '../../_interfaces/GTBRegimeBensInterface';
|
||||
import { GTBRegimeBensSaveService } from '../../_services/g_tb_regimebens/GTBRegimeBensSaveService';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { useState } from 'react';
|
||||
import GTBRegimeComunhaoInterface from '../../_interfaces/GTBRegimeComunhaoInterface';
|
||||
import { GTBRegimeComunhaoIndexService } from '../../_services/g_tb_regimecomunhao/GTBRegimeComunhaoIndexService';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import GTBRegimeComunhaoInterface from '../../_interfaces/GTBRegimeComunhaoInterface';
|
||||
import { GTBRegimeComunhaoRemoveService } from '../../_services/g_tb_regimecomunhao/GTBRegimeComunhaoRemoveService';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from 'react';
|
||||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import GTBRegimeComunhaoInterface from '../../_interfaces/GTBRegimeComunhaoInterface';
|
||||
import { GTBRegimeComunhaoSaveService } from '../../_services/g_tb_regimecomunhao/GTBRegimeComunhaoSaveService';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { useState } from 'react';
|
||||
import { GTBTipoLogradouroInterface } from '../../_interfaces/GTBTipoLogradouroInterface';
|
||||
import { GTBTipoLogradouroIndexService } from '../../_services/g_tb_tipologradouro/GTBTipoLogradouroIndexService';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { GTBTipoLogradouroInterface } from '../../_interfaces/GTBTipoLogradouroInterface';
|
||||
import { GTBTipoLogradouroRemoveService } from '../../_services/g_tb_tipologradouro/GTBTipoLogradouroRemoveService';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { useState } from 'react';
|
||||
import { GTBTipoLogradouroInterface } from '../../_interfaces/GTBTipoLogradouroInterface';
|
||||
import { GTBTipoLogradouroSaveService } from '../../_services/g_tb_tipologradouro/GTBTipoLogradouroSaveService';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import { useResponse } from '@/app/_response/ResponseContext';
|
||||
import { useResponse } from '@/shared/components/response/ResponseContext';
|
||||
import { use, useState } from 'react';
|
||||
import GUfInterface from '../../_interfaces/GUfInterface';
|
||||
import GUfIndexService from '../../_services/g_uf/GUfIndexService';
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue