[MVPTN-87] refactor(Dir): Reestruturação de Pastas

This commit is contained in:
Keven Willian Pereira de Souza 2025-10-02 15:47:06 -03:00
parent 1fcc5e442d
commit 3aa4c73453
32 changed files with 45 additions and 45 deletions

View file

@ -4,17 +4,17 @@ import { useEffect, useState, useCallback } from 'react';
import { Card, CardContent } from '@/components/ui/card';
import Loading from '@/app/_components/loading/loading';
import TImovelTable from '../../../_components/t_imovel/TImovelTable';
import TImovelForm from '../../../_components/t_imovel/TImovelForm';
import TImovelTable from '@/packages/administrativo/components/t_imovel/TImovelTable';
import TImovelForm from '@/packages/administrativo/components/t_imovel/TImovelForm';
import { useTImovelIndexHook } from '../../../_hooks/t_imovel/useTImovelIndexHook';
import { useTImovelSaveHook } from '../../../_hooks/t_imovel/useTImovelSaveHook';
import { useTImovelDeleteHook } from '../../../_hooks/t_imovel/useTImovelDeleteHook';
import { useTImovelIndexHook } from '@/packages/administrativo/hooks/t_imovel/useTImovelIndexHook';
import { useTImovelSaveHook } from '@/packages/administrativo/hooks/t_imovel/useTImovelSaveHook';
import { useTImovelDeleteHook } from '@/packages/administrativo/hooks/t_imovel/useTImovelDeleteHook';
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
import TImovelInterface from '../../../_interfaces/TImovelInterface';
import TImovelInterface from '@/packages/administrativo/interfaces/TImovelInterface';
import Header from '@/app/_components/structure/Header';
export default function TTBAndamentoServico() {

View file

@ -1,5 +1,5 @@
import { ColumnDef } from "@tanstack/react-table";
import TImovelInterface from "../../_interfaces/TImovelInterface";
import TImovelInterface from "../../interfaces/TImovelInterface";
import { Button } from "@/components/ui/button";
import {
EllipsisIcon,

View file

@ -24,7 +24,7 @@ import {
} from '@/components/ui/form';
import { Input } from '@/components/ui/input';
import { TImovelFormValues, TImovelSchema } from '../../_schemas/TImovelSchema';
import { TImovelFormValues, TImovelSchema } from '../../schemas/TImovelSchema';
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
import { CheckIcon, ChevronsUpDownIcon, HouseIcon, IdCardIcon } from 'lucide-react';
@ -34,7 +34,7 @@ import { ImovelTipoRegistro } from '@/enums/ImovelTipoRegistro';
import { ImovelTipoClasseEnum } from '@/enums/ImovelTipoClasseEnum';
import { ResetFormIfData } from '@/actions/form/ResetFormIfData';
import { TImovelFormProps } from './TImovelFormProps';
import { useGTBBairroReadHook } from '../../_hooks/g_tb_bairro/useGTBBairroReadHook';
import { useGTBBairroReadHook } from '../../../../app/(protected)/(cadastros)/cadastros/_hooks/g_tb_bairro/useGTBBairroReadHook';
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from '@/components/ui/command';
import { cn } from '@/lib/utils';

View file

@ -2,7 +2,7 @@
import { DataTable } from '@/app/_components/dataTable/DataTable';
import TImovelColumns from './TImovelColumns';
import TImovelInterface from '../../_interfaces/TImovelInterface';
import TImovelInterface from '../../interfaces/TImovelInterface';
interface TImovelTableProps {
data?: TImovelInterface[];

View file

@ -1,5 +1,5 @@
import { ColumnDef } from "@tanstack/react-table";
import TImovelUnidadeInterface from "../../_interfaces/TImovelUnidadeInterface";
import TImovelUnidadeInterface from "../../interfaces/TImovelUnidadeInterface";
import { Button } from "@/components/ui/button";
import {
EllipsisIcon,

View file

@ -25,9 +25,9 @@ import {
import { Input } from '@/components/ui/input';
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
import { TImovelUnidadeFormValues, TImovelUnidadeSchema } from '../../_schemas/TImovelUnidadeSchema';
import { TImovelUnidadeFormValues, TImovelUnidadeSchema } from '../../schemas/TImovelUnidadeSchema';
import TImovelUnidadeProps from './TImovelUnidadeFormProps';
import { useGTBTipoLogradouroReadHook } from '../../_hooks/g_tb_tipologradouro/useGTBTipoLogradouroReadHook';
import { useGTBTipoLogradouroReadHook } from '../../../../app/(protected)/(cadastros)/cadastros/_hooks/g_tb_tipologradouro/useGTBTipoLogradouroReadHook';
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
import { CheckIcon, ChevronsUpDownIcon } from 'lucide-react';
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from '@/components/ui/command';

View file

@ -1,4 +1,4 @@
import { TImovelUnidadeFormValues } from "../../_schemas/TImovelUnidadeSchema";
import { TImovelUnidadeFormValues } from "../../schemas/TImovelUnidadeSchema";
export default interface TImovelUnidadeProps {
isOpen: boolean;

View file

@ -6,14 +6,14 @@ import Loading from '@/app/_components/loading/loading';
import TImovelUnidadeTable from './TImovelUnidadeTable';
import TImovelUnidadeForm from './TImovelUnidadeForm';
import { useTImovelUnidadeIndexHook } from '../.././_hooks/t_imovel_unidade/useTImovelUnidadeIndexHook';
import { useTImovelUnidadeSaveHook } from '../.././_hooks/t_imovel_unidade/useTImovelUnidadeSaveHook';
import { useTImovelUnidadeDeleteHook } from '../.././_hooks/t_imovel_unidade/useTImovelUnidadeDeleteHook';
import { useTImovelUnidadeIndexHook } from '../../hooks/t_imovel_unidade/useTImovelUnidadeIndexHook';
import { useTImovelUnidadeSaveHook } from '../../hooks/t_imovel_unidade/useTImovelUnidadeSaveHook';
import { useTImovelUnidadeDeleteHook } from '../../hooks/t_imovel_unidade/useTImovelUnidadeDeleteHook';
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
import TImovelUnidadeInterface from '../../_interfaces/TImovelUnidadeInterface';
import TImovelUnidadeInterface from '../../interfaces/TImovelUnidadeInterface';
import Header from '@/app/_components/structure/Header';
export default function TImovelUnidadePage() {

View file

@ -1,7 +1,7 @@
'use client';
import { DataTable } from '@/app/_components/dataTable/DataTable';
import TImovelUnidadeInterface from '../../_interfaces/TImovelUnidadeInterface';
import TImovelUnidadeInterface from '../../interfaces/TImovelUnidadeInterface';
import TImovelUnidadeColumns from './TImovelUnidadeColumns';
interface TImovelUnidadeTableProps {

View file

@ -1,5 +1,5 @@
import { withClientErrorHandler } from "@/actions/withClientErrorHandler/withClientErrorHandler";
import TImovelInterface from "../../_interfaces/TImovelInterface";
import TImovelInterface from "../../interfaces/TImovelInterface";
async function executeTImovelDeleteData(data: TImovelInterface) {

View file

@ -1,5 +1,5 @@
import { withClientErrorHandler } from "@/actions/withClientErrorHandler/withClientErrorHandler";
import TImovelInterface from "../../_interfaces/TImovelInterface";
import TImovelInterface from "../../interfaces/TImovelInterface";
async function executeTImovelSaveData(data: TImovelInterface) {

View file

@ -1,5 +1,5 @@
import { withClientErrorHandler } from "@/actions/withClientErrorHandler/withClientErrorHandler";
import TImovelUnidadeInterface from "../../_interfaces/TImovelUnidadeInterface";
import TImovelUnidadeInterface from "../../interfaces/TImovelUnidadeInterface";
async function executeTImovelUnidadeDeleteData(data: TImovelUnidadeInterface) {

View file

@ -1,5 +1,5 @@
import { withClientErrorHandler } from "@/actions/withClientErrorHandler/withClientErrorHandler";
import TImovelUnidadeInterface from "../../_interfaces/TImovelUnidadeInterface";
import TImovelUnidadeInterface from "../../interfaces/TImovelUnidadeInterface";
async function executeTImovelUnidadeSaveData(data: TImovelUnidadeInterface) {

View file

@ -1,7 +1,7 @@
import { useResponse } from '@/app/_response/ResponseContext';
import { useState } from 'react';
import TImovelInterface from '../../_interfaces/TImovelInterface';
import { TImovelDeleteService } from '../../_services/t_imovel/TImovelDeleteService';
import TImovelInterface from '../../interfaces/TImovelInterface';
import { TImovelDeleteService } from '../../services/t_imovel/TImovelDeleteService';
export const useTImovelDeleteHook = () => {
const { setResponse } = useResponse();

View file

@ -2,8 +2,8 @@
import { useResponse } from '@/app/_response/ResponseContext';
import { useState } from 'react';
import TImovelInterface from '../../_interfaces/TImovelInterface';
import { TImovelIndexData } from '../../_data/TImovel/TImovelIndexData';
import TImovelInterface from '../../interfaces/TImovelInterface';
import { TImovelIndexData } from '../../data/TImovel/TImovelIndexData';
export const useTImovelIndexHook = () => {
const { setResponse } = useResponse();

View file

@ -2,8 +2,8 @@
import { useResponse } from '@/app/_response/ResponseContext';
import { useState } from 'react';
import TImovelInterface from '../../_interfaces/TImovelInterface';
import { TImovelSaveService } from '../../_services/t_imovel/TImovelSaveService';
import TImovelInterface from '../../interfaces/TImovelInterface';
import { TImovelSaveService } from '../../services/t_imovel/TImovelSaveService';
export const useTImovelSaveHook = () => {
const { setResponse } = useResponse();

View file

@ -1,7 +1,7 @@
import { useResponse } from '@/app/_response/ResponseContext';
import { useState } from 'react';
import TImovelUnidadeInterface from '../../_interfaces/TImovelUnidadeInterface';
import { TImovelDeleteService } from '../../_services/t_imovel/TImovelDeleteService';
import TImovelUnidadeInterface from '../../interfaces/TImovelUnidadeInterface';
import { TImovelDeleteService } from '../../services/t_imovel/TImovelDeleteService';
export const useTImovelUnidadeDeleteHook = () => {
const { setResponse } = useResponse();

View file

@ -2,8 +2,8 @@
import { useResponse } from '@/app/_response/ResponseContext';
import { useState } from 'react';
import TImovelUnidadeInterface from '../../_interfaces/TImovelUnidadeInterface';
import { TImovelUnidadeIndexData } from '../../_data/TImovelUnidade/TImovelUnidadeIndexData';
import TImovelUnidadeInterface from '../../interfaces/TImovelUnidadeInterface';
import { TImovelUnidadeIndexData } from '../../data/TImovelUnidade/TImovelUnidadeIndexData';
export const useTImovelUnidadeIndexHook = () => {
const { setResponse } = useResponse();

View file

@ -2,8 +2,8 @@
import { useResponse } from '@/app/_response/ResponseContext';
import { useState } from 'react';
import TImovelUnidadeInterface from '../../_interfaces/TImovelUnidadeInterface';
import { TImovelUnidadeSaveService } from '../../_services/t_imovel_unidade/TImovelUnidadeSaveService';
import TImovelUnidadeInterface from '../../interfaces/TImovelUnidadeInterface';
import { TImovelUnidadeSaveService } from '../../services/t_imovel_unidade/TImovelUnidadeSaveService';
export const useTImovelUnidadeSaveHook = () => {
const { setResponse } = useResponse();

View file

@ -1,6 +1,6 @@
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
import { TImovelDeleteData } from '../../_data/TImovel/TImovelDeleteData';
import TImovelInterface from '../../_interfaces/TImovelInterface';
import { TImovelDeleteData } from '../../data/TImovel/TImovelDeleteData';
import TImovelInterface from '../../interfaces/TImovelInterface';
async function executeTImovelDeleteService(data: TImovelInterface) {
const response = await TImovelDeleteData(data);

View file

@ -1,5 +1,5 @@
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
import { TImovelIndexData } from '../../_data/TImovel/TImovelIndexData';
import { TImovelIndexData } from '../../data/TImovel/TImovelIndexData';
export default async function executeTImovelIndexService() {
const response = await TImovelIndexData();

View file

@ -1,6 +1,6 @@
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
import { TImovelSaveData } from '../../_data/TImovel/TImovelSaveData';
import TImovelInterface from '../../_interfaces/TImovelInterface';
import { TImovelSaveData } from '../../data/TImovel/TImovelSaveData';
import TImovelInterface from '../../interfaces/TImovelInterface';
async function executeTImovelSaveService(data: TImovelInterface) {
const response = await TImovelSaveData(data);

View file

@ -1,6 +1,6 @@
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
import TImovelUnidadeInterface from '../../_interfaces/TImovelUnidadeInterface';
import { TImovelUnidadeDeleteData } from '../../_data/TImovelUnidade/TImovelUnidadeDeleteData';
import TImovelUnidadeInterface from '../../interfaces/TImovelUnidadeInterface';
import { TImovelUnidadeDeleteData } from '../../data/TImovelUnidade/TImovelUnidadeDeleteData';
async function executeTImovelUnidadeDeleteService(data: TImovelUnidadeInterface) {
const response = await TImovelUnidadeDeleteData(data);

View file

@ -1,5 +1,5 @@
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
import { TImovelUnidadeIndexData } from '../../_data/TImovelUnidade/TImovelUnidadeIndexData';
import { TImovelUnidadeIndexData } from '../../data/TImovelUnidade/TImovelUnidadeIndexData';
export default async function executeTImovelUnidadeIndexService() {
const response = await TImovelUnidadeIndexData();

View file

@ -1,6 +1,6 @@
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
import TImovelUnidadeInterface from '../../_interfaces/TImovelUnidadeInterface';
import { TImovelUnidadeSaveData } from '../../_data/TImovelUnidade/TImovelUnidadeSaveData';
import TImovelUnidadeInterface from '../../interfaces/TImovelUnidadeInterface';
import { TImovelUnidadeSaveData } from '../../data/TImovelUnidade/TImovelUnidadeSaveData';
async function executeTImovelUnidadeSaveService(data: TImovelUnidadeInterface) {
const response = await TImovelUnidadeSaveData(data);