diff --git a/hw-ui/src/api/dms/dmsBaseDeviceSupplies.js b/hw-ui/src/api/dms/dmsBaseDeviceSupplies.js new file mode 100644 index 0000000..ad308f2 --- /dev/null +++ b/hw-ui/src/api/dms/dmsBaseDeviceSupplies.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 查询设备配套信息列表 +export function listDmsBaseDeviceSupplies(query) { + return request({ + url: '/dms/dmsBaseDeviceSupplies/list', + method: 'get', + params: query + }) +} + + +// 查询设备配套信息详细 +export function getDmsBaseDeviceSupplies(deviceSuppliesId) { + return request({ + url: '/dms/dmsBaseDeviceSupplies/' + deviceSuppliesId, + method: 'get' + }) +} + +// 新增设备配套信息 +export function addDmsBaseDeviceSupplies(data) { + return request({ + url: '/dms/dmsBaseDeviceSupplies', + method: 'post', + data: data + }) +} + +// 修改设备配套信息 +export function updateDmsBaseDeviceSupplies(data) { + return request({ + url: '/dms/dmsBaseDeviceSupplies', + method: 'put', + data: data + }) +} + +// 删除设备配套信息 +export function delDmsBaseDeviceSupplies(deviceSuppliesId) { + return request({ + url: '/dms/dmsBaseDeviceSupplies/' + deviceSuppliesId, + method: 'delete' + }) +} + +// 根据deviceId查询设备配套信息列表 +export function listDmsBaseDeviceSuppliesByDeviceId(deviceId) { + return request({ + url: '/dms/dmsBaseDeviceSupplies/listByDeviceId/' + deviceId, + method: 'get' + }) +} +