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 const rentingOut = (data) => http.post('/open/equipment/rentingOut',data)

export default {
	pageEquipment,
	getEquipment,
	bindEquipment,
	changeEquipment,
	rentingOut
}
