import http from './index.js';

// 分页查询设备列表
export const pageEquipmentGoods = (params) => http.get('/apps/equipment-goods/page', {params})

// 查询设备
export const getEquipmentGoods = (goodsId) => http.get('/apps/equipment-goods/' + goodsId)

// 绑定设备
export const bindEquipment = (data) => http.post('/open/equipment/bind', data)

// 绑定设备
export const changeEquipment = (data) => http.post('/open/equipment/change', data)

export default {
	pageEquipmentGoods,
	getEquipmentGoods,
	bindEquipment,
	changeEquipment
}
