import http from './index.js';

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

// 查询设备
export const getEquipment = (equipmentId) => http.get('/apps/equipment/' + equipmentId)

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

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

export default {
	pageEquipment,
	getEquipment,
	bindEquipment,
	changeEquipment
}
