import request from '@/utils/request'

// 分页查询技术方案申请归档
export function listDingSchemeApplication(query) {
  return request({
    url: '/system/ding/scheme/list',
    method: 'get',
    params: query
  })
}

// 查询技术方案申请详情
export function getDingSchemeApplication(id) {
  return request({
    url: '/system/ding/scheme/' + id,
    method: 'get'
  })
}

// 手动推送 PLM
export function pushDingSchemePlm(id, force) {
  return request({
    url: '/system/ding/scheme/' + id + '/push-plm',
    method: 'post',
    params: { force: !!force }
  })
}
