Merge branch 'main' of http://39.117.244.52:3000/kjs/ERP-node into feature/unified-components-renewal
This commit is contained in:
@@ -85,9 +85,9 @@ export const menuApi = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
// 사용자 메뉴 목록 조회 (좌측 사이드바용 - active만 표시)
|
||||
// 사용자 메뉴 목록 조회 (좌측 사이드바용 - active만 표시, 회사별 필터링)
|
||||
getUserMenus: async (): Promise<ApiResponse<MenuItem[]>> => {
|
||||
const response = await apiClient.get("/admin/menus", { params: { menuType: "1" } });
|
||||
const response = await apiClient.get("/admin/user-menus");
|
||||
return response.data;
|
||||
},
|
||||
|
||||
|
||||
@@ -120,3 +120,41 @@ export interface NodeExecutionSummary {
|
||||
duration?: number;
|
||||
error?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 플로우 소스 테이블 정보 인터페이스
|
||||
*/
|
||||
export interface FlowSourceTableInfo {
|
||||
sourceTable: string | null;
|
||||
sourceNodeType: string | null;
|
||||
sourceNodeId?: string;
|
||||
displayName?: string;
|
||||
message?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 플로우 소스 테이블 조회
|
||||
* 플로우의 첫 번째 소스 노드(tableSource, externalDBSource)에서 테이블명 추출
|
||||
*/
|
||||
export async function getFlowSourceTable(flowId: number): Promise<FlowSourceTableInfo> {
|
||||
try {
|
||||
const response = await apiClient.get<ApiResponse<FlowSourceTableInfo>>(
|
||||
`/dataflow/node-flows/${flowId}/source-table`,
|
||||
);
|
||||
if (response.data.success && response.data.data) {
|
||||
return response.data.data;
|
||||
}
|
||||
return {
|
||||
sourceTable: null,
|
||||
sourceNodeType: null,
|
||||
message: response.data.message || "소스 테이블 정보를 가져올 수 없습니다.",
|
||||
};
|
||||
} catch (error) {
|
||||
console.error("플로우 소스 테이블 조회 실패:", error);
|
||||
return {
|
||||
sourceTable: null,
|
||||
sourceNodeType: null,
|
||||
message: "API 호출 중 오류가 발생했습니다.",
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user