엣지 호버 등 수정사항 반영

This commit is contained in:
hyeonsu
2025-09-10 11:27:05 +09:00
parent 12910c69e8
commit 0a8413ee8c
3 changed files with 210 additions and 111 deletions

View File

@@ -139,13 +139,21 @@ export class DataFlowAPI {
*/
static async getTableColumns(tableName: string): Promise<ColumnInfo[]> {
try {
const response = await apiClient.get<ApiResponse<ColumnInfo[]>>(`/table-management/tables/${tableName}/columns`);
const response = await apiClient.get<
ApiResponse<{
columns: ColumnInfo[];
page: number;
total: number;
totalPages: number;
}>
>(`/table-management/tables/${tableName}/columns`);
if (!response.data.success) {
throw new Error(response.data.message || "컬럼 정보 조회에 실패했습니다.");
}
return response.data.data || [];
// 페이지네이션된 응답에서 columns 배열만 추출
return response.data.data?.columns || [];
} catch (error) {
console.error("컬럼 정보 조회 오류:", error);
throw error;