You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
406 B

import http from '@/common/request'
export function getDevice(dev_eui, limit, offset) {
let data = {}
if(dev_eui){
data.dev_eui = dev_eui
}
if(limit){
data.limit = limit
}
if(offset){
data.offset = offset
}
return http.get('/device/info',data)
}
export function postDevice(dev) {
return http.post('/device/info',dev)
}
export function delDevice(id) {
return http.del(`/device/${id}`)
}