import { downloadFile, post } from '@/utils/http'
// 根据partId获取cadDocumentTree
export function getCadTree(part) {
  return post(`DxPart/getCADBuildRuleByPart`, part)
}
// 单个模型的转换
export function singleTransformByCadId(id) {
  return post(`/DxCADDocument/transfer?id=${id}`)
}
// 可视化文件下载
export function downloadFileById(id) {
  return downloadFile(`/dfs/fileManager/downloadio?fileId=${id}`)
}