라벨명 표시기능
This commit is contained in:
@@ -209,10 +209,23 @@ export const tableTypeApi = {
|
||||
return response.data.data;
|
||||
},
|
||||
|
||||
// 테이블 라벨 조회
|
||||
getTableLabel: async (tableName: string): Promise<{ tableLabel?: string; description?: string }> => {
|
||||
try {
|
||||
const response = await apiClient.get(`/table-management/tables/${tableName}/labels`);
|
||||
return response.data.data || {};
|
||||
} catch (error) {
|
||||
// 라벨이 없으면 빈 객체 반환
|
||||
return {};
|
||||
}
|
||||
},
|
||||
|
||||
// 테이블 컬럼 정보 조회
|
||||
getColumns: async (tableName: string): Promise<any[]> => {
|
||||
const response = await apiClient.get(`/table-management/tables/${tableName}/columns`);
|
||||
return response.data.data;
|
||||
// 새로운 API 응답 구조에 맞게 수정: { columns, total, page, size, totalPages }
|
||||
const data = response.data.data || response.data;
|
||||
return data.columns || data || [];
|
||||
},
|
||||
|
||||
// 컬럼 웹 타입 설정
|
||||
|
||||
Reference in New Issue
Block a user