2025-09-05 16:19:31 +09:00
|
|
|
import { apiClient, ApiResponse } from "./client";
|
|
|
|
|
|
2025-09-05 18:00:18 +09:00
|
|
|
// 테이블 간 데이터 관계 설정 관련 타입 정의
|
2025-09-05 16:19:31 +09:00
|
|
|
|
|
|
|
|
export interface ColumnInfo {
|
|
|
|
|
columnName: string;
|
|
|
|
|
columnLabel?: string;
|
|
|
|
|
displayName?: string;
|
|
|
|
|
dataType?: string;
|
|
|
|
|
dbType?: string;
|
|
|
|
|
webType?: string;
|
|
|
|
|
isNullable?: string;
|
|
|
|
|
columnDefault?: string;
|
|
|
|
|
characterMaximumLength?: number;
|
|
|
|
|
numericPrecision?: number;
|
|
|
|
|
numericScale?: number;
|
|
|
|
|
detailSettings?: string;
|
|
|
|
|
codeCategory?: string;
|
|
|
|
|
referenceTable?: string;
|
|
|
|
|
referenceColumn?: string;
|
|
|
|
|
isVisible?: string;
|
|
|
|
|
displayOrder?: number;
|
|
|
|
|
description?: string;
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-05 18:00:18 +09:00
|
|
|
export interface TableDefinition {
|
|
|
|
|
tableName: string;
|
|
|
|
|
displayName?: string;
|
|
|
|
|
description?: string;
|
|
|
|
|
columns: ColumnInfo[];
|
2025-09-05 16:19:31 +09:00
|
|
|
}
|
|
|
|
|
|
2025-09-05 18:00:18 +09:00
|
|
|
export interface TableInfo {
|
|
|
|
|
tableName: string;
|
|
|
|
|
displayName: string;
|
|
|
|
|
description: string;
|
|
|
|
|
columnCount: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface TableRelationship {
|
2025-09-09 11:35:05 +09:00
|
|
|
relationship_id?: number;
|
2025-09-09 18:42:01 +09:00
|
|
|
diagram_id?: number; // 새 관계도 생성 시에는 optional
|
2025-09-09 11:35:05 +09:00
|
|
|
relationship_name: string;
|
|
|
|
|
from_table_name: string;
|
|
|
|
|
from_column_name: string;
|
|
|
|
|
to_table_name: string;
|
|
|
|
|
to_column_name: string;
|
|
|
|
|
relationship_type: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
|
|
|
|
|
connection_type: "simple-key" | "data-save" | "external-call";
|
2025-09-08 16:46:53 +09:00
|
|
|
settings?: Record<string, unknown>;
|
2025-09-09 11:35:05 +09:00
|
|
|
company_code: string;
|
|
|
|
|
is_active?: string;
|
2025-09-05 16:19:31 +09:00
|
|
|
}
|
|
|
|
|
|
2025-09-08 16:46:53 +09:00
|
|
|
// 데이터 연결 중계 테이블 타입
|
|
|
|
|
export interface DataBridge {
|
|
|
|
|
bridgeId: number;
|
|
|
|
|
relationshipId: number;
|
|
|
|
|
fromTableName: string;
|
|
|
|
|
fromColumnName: string;
|
|
|
|
|
toTableName: string;
|
|
|
|
|
toColumnName: string;
|
|
|
|
|
connectionType: string;
|
|
|
|
|
companyCode: string;
|
|
|
|
|
createdAt: string;
|
|
|
|
|
createdBy?: string;
|
|
|
|
|
updatedAt: string;
|
|
|
|
|
updatedBy?: string;
|
|
|
|
|
isActive: string;
|
|
|
|
|
bridgeData?: Record<string, unknown>;
|
|
|
|
|
relationship?: {
|
|
|
|
|
relationshipName: string;
|
|
|
|
|
relationshipType: string;
|
|
|
|
|
connectionType: string;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-08 18:18:47 +09:00
|
|
|
// 테이블 데이터 조회 응답 타입
|
|
|
|
|
export interface TableDataResponse {
|
|
|
|
|
data: Record<string, unknown>[];
|
|
|
|
|
pagination: {
|
|
|
|
|
page: number;
|
|
|
|
|
limit: number;
|
|
|
|
|
total: number;
|
|
|
|
|
totalPages: number;
|
|
|
|
|
hasNext: boolean;
|
|
|
|
|
hasPrev: boolean;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-09 11:35:05 +09:00
|
|
|
// 관계도 정보 인터페이스
|
|
|
|
|
export interface DataFlowDiagram {
|
2025-09-09 18:42:01 +09:00
|
|
|
diagramId: number;
|
2025-09-09 11:35:05 +09:00
|
|
|
diagramName: string;
|
|
|
|
|
connectionType: string;
|
|
|
|
|
relationshipType: string;
|
|
|
|
|
tableCount: number;
|
|
|
|
|
relationshipCount: number;
|
|
|
|
|
tables: string[];
|
|
|
|
|
createdAt: Date;
|
|
|
|
|
createdBy: string;
|
|
|
|
|
updatedAt: Date;
|
|
|
|
|
updatedBy: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 관계도 목록 응답 인터페이스
|
|
|
|
|
export interface DataFlowDiagramsResponse {
|
|
|
|
|
diagrams: DataFlowDiagram[];
|
|
|
|
|
total: number;
|
|
|
|
|
page: number;
|
|
|
|
|
size: number;
|
|
|
|
|
totalPages: number;
|
|
|
|
|
hasNext: boolean;
|
|
|
|
|
hasPrev: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-05 18:00:18 +09:00
|
|
|
// 테이블 간 데이터 관계 설정 API 클래스
|
2025-09-05 16:19:31 +09:00
|
|
|
export class DataFlowAPI {
|
|
|
|
|
/**
|
2025-09-05 18:00:18 +09:00
|
|
|
* 테이블 목록 조회
|
2025-09-05 16:19:31 +09:00
|
|
|
*/
|
2025-09-05 18:00:18 +09:00
|
|
|
static async getTables(): Promise<TableInfo[]> {
|
2025-09-05 16:19:31 +09:00
|
|
|
try {
|
2025-09-05 18:00:18 +09:00
|
|
|
const response = await apiClient.get<ApiResponse<TableInfo[]>>("/table-management/tables");
|
2025-09-05 16:19:31 +09:00
|
|
|
|
|
|
|
|
if (!response.data.success) {
|
2025-09-05 18:00:18 +09:00
|
|
|
throw new Error(response.data.message || "테이블 목록 조회에 실패했습니다.");
|
2025-09-05 16:19:31 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return response.data.data || [];
|
|
|
|
|
} catch (error) {
|
2025-09-05 18:00:18 +09:00
|
|
|
console.error("테이블 목록 조회 오류:", error);
|
2025-09-05 16:19:31 +09:00
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 테이블 컬럼 정보 조회
|
|
|
|
|
*/
|
|
|
|
|
static async getTableColumns(tableName: string): Promise<ColumnInfo[]> {
|
|
|
|
|
try {
|
|
|
|
|
const response = await apiClient.get<ApiResponse<ColumnInfo[]>>(`/table-management/tables/${tableName}/columns`);
|
|
|
|
|
|
|
|
|
|
if (!response.data.success) {
|
|
|
|
|
throw new Error(response.data.message || "컬럼 정보 조회에 실패했습니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return response.data.data || [];
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error("컬럼 정보 조회 오류:", error);
|
|
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2025-09-05 18:00:18 +09:00
|
|
|
* 테이블 정보와 컬럼 정보를 함께 조회
|
2025-09-05 16:19:31 +09:00
|
|
|
*/
|
2025-09-05 18:00:18 +09:00
|
|
|
static async getTableWithColumns(tableName: string): Promise<TableDefinition | null> {
|
2025-09-05 16:19:31 +09:00
|
|
|
try {
|
2025-09-05 18:00:18 +09:00
|
|
|
const columns = await this.getTableColumns(tableName);
|
2025-09-05 16:19:31 +09:00
|
|
|
|
|
|
|
|
return {
|
2025-09-05 18:00:18 +09:00
|
|
|
tableName,
|
|
|
|
|
displayName: tableName,
|
|
|
|
|
description: `${tableName} 테이블`,
|
|
|
|
|
columns,
|
2025-09-05 16:19:31 +09:00
|
|
|
};
|
|
|
|
|
} catch (error) {
|
2025-09-05 18:00:18 +09:00
|
|
|
console.error("테이블 및 컬럼 정보 조회 오류:", error);
|
2025-09-05 16:19:31 +09:00
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2025-09-05 18:00:18 +09:00
|
|
|
* 테이블 관계 생성
|
2025-09-05 16:19:31 +09:00
|
|
|
*/
|
2025-09-09 18:42:01 +09:00
|
|
|
static async createRelationship(
|
|
|
|
|
relationship: any, // 백엔드 API 형식 (camelCase)
|
|
|
|
|
): Promise<TableRelationship> {
|
2025-09-05 16:19:31 +09:00
|
|
|
try {
|
2025-09-08 16:46:53 +09:00
|
|
|
const response = await apiClient.post<ApiResponse<TableRelationship>>(
|
|
|
|
|
"/dataflow/table-relationships",
|
|
|
|
|
relationship,
|
|
|
|
|
);
|
2025-09-05 16:19:31 +09:00
|
|
|
|
|
|
|
|
if (!response.data.success) {
|
|
|
|
|
throw new Error(response.data.message || "관계 생성에 실패했습니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return response.data.data!;
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error("관계 생성 오류:", error);
|
|
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2025-09-05 18:00:18 +09:00
|
|
|
* 회사별 테이블 관계 목록 조회
|
2025-09-05 16:19:31 +09:00
|
|
|
*/
|
2025-09-05 18:00:18 +09:00
|
|
|
static async getRelationshipsByCompany(companyCode: string): Promise<TableRelationship[]> {
|
2025-09-05 16:19:31 +09:00
|
|
|
try {
|
2025-09-08 16:46:53 +09:00
|
|
|
const response = await apiClient.get<ApiResponse<TableRelationship[]>>("/dataflow/table-relationships", {
|
2025-09-05 16:19:31 +09:00
|
|
|
params: { companyCode },
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (!response.data.success) {
|
|
|
|
|
throw new Error(response.data.message || "관계 목록 조회에 실패했습니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return response.data.data || [];
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error("관계 목록 조회 오류:", error);
|
|
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2025-09-05 18:00:18 +09:00
|
|
|
* 테이블 관계 수정
|
2025-09-05 16:19:31 +09:00
|
|
|
*/
|
|
|
|
|
static async updateRelationship(
|
|
|
|
|
relationshipId: number,
|
2025-09-05 18:00:18 +09:00
|
|
|
relationship: Partial<TableRelationship>,
|
|
|
|
|
): Promise<TableRelationship> {
|
2025-09-05 16:19:31 +09:00
|
|
|
try {
|
2025-09-05 18:00:18 +09:00
|
|
|
const response = await apiClient.put<ApiResponse<TableRelationship>>(
|
2025-09-08 16:46:53 +09:00
|
|
|
`/dataflow/table-relationships/${relationshipId}`,
|
2025-09-05 16:19:31 +09:00
|
|
|
relationship,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if (!response.data.success) {
|
|
|
|
|
throw new Error(response.data.message || "관계 수정에 실패했습니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return response.data.data!;
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error("관계 수정 오류:", error);
|
|
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2025-09-05 18:00:18 +09:00
|
|
|
* 테이블 관계 삭제
|
2025-09-05 16:19:31 +09:00
|
|
|
*/
|
|
|
|
|
static async deleteRelationship(relationshipId: number): Promise<void> {
|
|
|
|
|
try {
|
2025-09-08 16:46:53 +09:00
|
|
|
const response = await apiClient.delete<ApiResponse<null>>(`/dataflow/table-relationships/${relationshipId}`);
|
2025-09-05 16:19:31 +09:00
|
|
|
|
|
|
|
|
if (!response.data.success) {
|
|
|
|
|
throw new Error(response.data.message || "관계 삭제에 실패했습니다.");
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error("관계 삭제 오류:", error);
|
|
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-09-08 16:46:53 +09:00
|
|
|
|
|
|
|
|
// ==================== 데이터 연결 관리 API ====================
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 데이터 연결 생성
|
|
|
|
|
*/
|
|
|
|
|
static async createDataLink(linkData: {
|
|
|
|
|
relationshipId: number;
|
|
|
|
|
fromTableName: string;
|
|
|
|
|
fromColumnName: string;
|
|
|
|
|
toTableName: string;
|
|
|
|
|
toColumnName: string;
|
|
|
|
|
connectionType: string;
|
|
|
|
|
bridgeData?: Record<string, unknown>;
|
|
|
|
|
}): Promise<DataBridge> {
|
|
|
|
|
try {
|
|
|
|
|
const response = await apiClient.post<ApiResponse<DataBridge>>("/dataflow/data-links", linkData);
|
|
|
|
|
|
|
|
|
|
if (!response.data.success) {
|
|
|
|
|
throw new Error(response.data.message || "데이터 연결 생성에 실패했습니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return response.data.data as DataBridge;
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error("데이터 연결 생성 오류:", error);
|
|
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 관계별 연결된 데이터 조회
|
|
|
|
|
*/
|
|
|
|
|
static async getLinkedDataByRelationship(relationshipId: number): Promise<DataBridge[]> {
|
|
|
|
|
try {
|
|
|
|
|
const response = await apiClient.get<ApiResponse<DataBridge[]>>(
|
|
|
|
|
`/dataflow/data-links/relationship/${relationshipId}`,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if (!response.data.success) {
|
|
|
|
|
throw new Error(response.data.message || "연결된 데이터 조회에 실패했습니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return response.data.data as DataBridge[];
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error("연결된 데이터 조회 오류:", error);
|
|
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 데이터 연결 삭제
|
|
|
|
|
*/
|
|
|
|
|
static async deleteDataLink(bridgeId: number): Promise<void> {
|
|
|
|
|
try {
|
|
|
|
|
const response = await apiClient.delete<ApiResponse<null>>(`/dataflow/data-links/${bridgeId}`);
|
|
|
|
|
|
|
|
|
|
if (!response.data.success) {
|
|
|
|
|
throw new Error(response.data.message || "데이터 연결 삭제에 실패했습니다.");
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error("데이터 연결 삭제 오류:", error);
|
|
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-09-08 18:18:47 +09:00
|
|
|
|
|
|
|
|
// ==================== 테이블 데이터 조회 API ====================
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 테이블 실제 데이터 조회 (페이징)
|
|
|
|
|
*/
|
|
|
|
|
static async getTableData(
|
|
|
|
|
tableName: string,
|
|
|
|
|
page: number = 1,
|
|
|
|
|
limit: number = 10,
|
|
|
|
|
search: string = "",
|
|
|
|
|
searchColumn: string = "",
|
|
|
|
|
): Promise<TableDataResponse> {
|
|
|
|
|
try {
|
|
|
|
|
const params = new URLSearchParams({
|
|
|
|
|
page: page.toString(),
|
|
|
|
|
limit: limit.toString(),
|
|
|
|
|
...(search && { search }),
|
|
|
|
|
...(searchColumn && { searchColumn }),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const response = await apiClient.get<ApiResponse<TableDataResponse>>(
|
|
|
|
|
`/dataflow/table-data/${tableName}?${params}`,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if (!response.data.success) {
|
|
|
|
|
throw new Error(response.data.message || "테이블 데이터 조회에 실패했습니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return response.data.data as TableDataResponse;
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error("테이블 데이터 조회 오류:", error);
|
|
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-09-09 11:35:05 +09:00
|
|
|
|
|
|
|
|
// ==================== 관계도 관리 ====================
|
|
|
|
|
|
|
|
|
|
// 관계도 목록 조회
|
|
|
|
|
static async getDataFlowDiagrams(
|
|
|
|
|
page: number = 1,
|
|
|
|
|
size: number = 20,
|
|
|
|
|
searchTerm: string = "",
|
|
|
|
|
): Promise<DataFlowDiagramsResponse> {
|
|
|
|
|
try {
|
|
|
|
|
const params = new URLSearchParams({
|
|
|
|
|
page: page.toString(),
|
|
|
|
|
size: size.toString(),
|
|
|
|
|
...(searchTerm && { searchTerm }),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const response = await apiClient.get<ApiResponse<DataFlowDiagramsResponse>>(`/dataflow/diagrams?${params}`);
|
|
|
|
|
|
|
|
|
|
if (!response.data.success) {
|
|
|
|
|
throw new Error(response.data.message || "관계도 목록 조회에 실패했습니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return response.data.data as DataFlowDiagramsResponse;
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error("관계도 목록 조회 오류:", error);
|
|
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-09 13:48:57 +09:00
|
|
|
// 특정 관계도의 모든 관계 조회 (관계도명으로)
|
2025-09-09 11:35:05 +09:00
|
|
|
static async getDiagramRelationships(diagramName: string): Promise<TableRelationship[]> {
|
|
|
|
|
try {
|
|
|
|
|
const encodedDiagramName = encodeURIComponent(diagramName);
|
|
|
|
|
const response = await apiClient.get<ApiResponse<TableRelationship[]>>(
|
|
|
|
|
`/dataflow/diagrams/${encodedDiagramName}/relationships`,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if (!response.data.success) {
|
|
|
|
|
throw new Error(response.data.message || "관계도 관계 조회에 실패했습니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return response.data.data as TableRelationship[];
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error("관계도 관계 조회 오류:", error);
|
|
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-09-09 13:10:03 +09:00
|
|
|
|
|
|
|
|
// 관계도 복사
|
|
|
|
|
static async copyDiagram(diagramName: string): Promise<string> {
|
|
|
|
|
try {
|
|
|
|
|
const encodedDiagramName = encodeURIComponent(diagramName);
|
|
|
|
|
const response = await apiClient.post<ApiResponse<{ newDiagramName: string }>>(
|
|
|
|
|
`/dataflow/diagrams/${encodedDiagramName}/copy`,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if (!response.data.success) {
|
|
|
|
|
throw new Error(response.data.message || "관계도 복사에 실패했습니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return response.data.data?.newDiagramName || "";
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error("관계도 복사 오류:", error);
|
|
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 관계도 삭제
|
|
|
|
|
static async deleteDiagram(diagramName: string): Promise<number> {
|
|
|
|
|
try {
|
|
|
|
|
const encodedDiagramName = encodeURIComponent(diagramName);
|
|
|
|
|
const response = await apiClient.delete<ApiResponse<{ deletedCount: number }>>(
|
|
|
|
|
`/dataflow/diagrams/${encodedDiagramName}`,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if (!response.data.success) {
|
|
|
|
|
throw new Error(response.data.message || "관계도 삭제에 실패했습니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return response.data.data?.deletedCount || 0;
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error("관계도 삭제 오류:", error);
|
|
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-09-09 13:48:57 +09:00
|
|
|
|
2025-09-09 18:42:01 +09:00
|
|
|
// 특정 관계도의 모든 관계 조회 (diagram_id로)
|
|
|
|
|
static async getDiagramRelationshipsByDiagramId(diagramId: number): Promise<TableRelationship[]> {
|
2025-09-09 13:48:57 +09:00
|
|
|
try {
|
|
|
|
|
const response = await apiClient.get<ApiResponse<TableRelationship[]>>(
|
2025-09-09 18:42:01 +09:00
|
|
|
`/dataflow/diagrams/${diagramId}/relationships`,
|
2025-09-09 13:48:57 +09:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if (!response.data.success) {
|
|
|
|
|
throw new Error(response.data.message || "관계도 관계 조회에 실패했습니다.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return response.data.data || [];
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error("관계도 관계 조회 오류:", error);
|
|
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-09-05 16:19:31 +09:00
|
|
|
}
|