엣지 호버 등 수정사항 반영
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user