refactor: 그룹 서비스 및 인터페이스 엔티티 폴더로 이동

This commit is contained in:
2025-06-19 10:33:50 +09:00
parent 3b7f8bcca7
commit cb38462164
7 changed files with 22 additions and 13 deletions
@@ -4,10 +4,10 @@ import { useState } from "react";
import { keepPreviousData, useQuery } from "@tanstack/react-query";
import { getCoreRowModel, type PaginationState } from "@tanstack/react-table";
import { Button } from "@common/components";
import { GroupApi } from "@/entities/group";
import { ENDPOINT } from "@/shared/config";
import { useDataTable } from "@/shared/lib";
import { columns } from "../model/groups-table-columns";
import { GroupsApi } from "../api/groups-service";
import { GroupsDialog } from "./groups-dialog";
type GroupsSectionProps = {
@@ -23,7 +23,7 @@ function GroupsSection({ handleSelectedGroup }: GroupsSectionProps) {
const query = useQuery({
queryKey: [ENDPOINT.CMS_SERVICE.GROUPS, pagination],
queryFn: () =>
GroupsApi.findPageGroup({
GroupApi.findPageGroup({
page: pagination.pageIndex,
size: pagination.pageSize,
}),