카테고리 설정 안풀리는 오류 수정
This commit is contained in:
@@ -259,6 +259,28 @@ export async function deleteColumnMapping(mappingId: number) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 테이블+컬럼 기준으로 모든 매핑 삭제
|
||||
*
|
||||
* 메뉴 선택 변경 시 기존 매핑을 모두 삭제하고 새로운 매핑만 추가하기 위해 사용
|
||||
*
|
||||
* @param tableName - 테이블명
|
||||
* @param columnName - 컬럼명
|
||||
*/
|
||||
export async function deleteColumnMappingsByColumn(tableName: string, columnName: string) {
|
||||
try {
|
||||
const response = await apiClient.delete<{
|
||||
success: boolean;
|
||||
message: string;
|
||||
deletedCount: number;
|
||||
}>(`/table-categories/column-mapping/${tableName}/${columnName}/all`);
|
||||
return response.data;
|
||||
} catch (error: any) {
|
||||
console.error("테이블+컬럼 기준 매핑 삭제 실패:", error);
|
||||
return { success: false, error: error.message, deletedCount: 0 };
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 2레벨 메뉴 목록 조회
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user