import request from '@/utils/request'

// 查询 PLM PDF 推送记录列表
export function listPlmPdfZipPush(query) {
  return request({
    url: '/system/plmPdfZipPush/list',
    method: 'get',
    params: query
  })
}

// 查询 PLM PDF 推送记录详情
export function getPlmPdfZipPush(id) {
  return request({
    url: '/system/plmPdfZipPush/' + id,
    method: 'get'
  })
}

// 下载推送明细中的 PLM DWG
export function downloadPlmDwgItem(itemId) {
  return request({
    url: '/system/plmPdfZipPush/downloadDwgItem/' + itemId,
    method: 'get',
    responseType: 'blob'
  })
}
