회사별 메뉴 분리 및 권한 관리

This commit is contained in:
kjs
2025-10-28 10:07:07 +09:00
parent 35581ac8d2
commit 25f6217433
13 changed files with 1273 additions and 370 deletions

View File

@@ -29,6 +29,14 @@ export const ddlApi = {
return response.data;
},
/**
* 테이블 삭제 (DROP TABLE)
*/
dropTable: async (tableName: string): Promise<DDLExecutionResult> => {
const response = await apiClient.delete(`/ddl/tables/${tableName}`);
return response.data;
},
/**
* 테이블 생성 사전 검증 (실제 생성하지 않고 검증만)
*/

View File

@@ -384,6 +384,28 @@ export async function getStepDataList(
}
}
/**
* 플로우 스텝의 컬럼 라벨 조회
*/
export async function getStepColumnLabels(
flowId: number,
stepId: number,
): Promise<ApiResponse<Record<string, string>>> {
try {
const response = await fetch(`${API_BASE}/flow/${flowId}/step/${stepId}/column-labels`, {
headers: getAuthHeaders(),
credentials: "include",
});
return await response.json();
} catch (error: any) {
return {
success: false,
error: error.message,
};
}
}
/**
* 모든 단계의 데이터 카운트 조회
*/