import request from '@/utils/request' // 查询舰艇设备列表 export function listDevice(query) { return request({ url: '/dp/dpShipDevice/getDpShipDevicesPage', method: 'get', params: query }) } // 查询舰艇设备详细 export function getDevice(ID) { return request({ url: '/dp/dpShipDevice/getDpShipDeviceByID?id=' + ID, method: 'get' }) } // selectDpShipDeviceByShipId // 查询舰艇设备详细 export function getDeviceList(deviceShipId) { return request({ url: '/dp/dpShipDevice/selectDpShipDeviceByShipId?deviceShipId=' + deviceShipId, method: 'get' }) } // 新增舰艇设备 export function addDevice(data) { return request({ url: '/dp/dpShipDevice/insertDpShipDevice', method: 'post', data: data }) } // 修改舰艇设备 export function updateDevice(data) { return request({ url: '/dp/dpShipDevice/updateDpShipDevice', method: 'post', data: data }) } // 删除舰艇设备 export function delDevice(ID) { return request({ url: '/dp/dpShipDevice/deleteDpShipDevice?id=' + ID, method: 'get' }) }