회사별 메뉴 분리 및 권한 관리
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
/**
|
||||
* 테이블 생성 사전 검증 (실제 생성하지 않고 검증만)
|
||||
*/
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 모든 단계의 데이터 카운트 조회
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user