用户模块
This commit is contained in:
@@ -23,3 +23,38 @@ export function getDevCount(id) {
|
||||
data: { id },
|
||||
})
|
||||
}
|
||||
|
||||
// 获取直连设备模板信息
|
||||
export function getModel(nDid) {
|
||||
return request({
|
||||
url: '/access-boot/device/model',
|
||||
method: 'post',
|
||||
data: {
|
||||
nDid
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 直连设备接入
|
||||
export function addDevice(params) {
|
||||
return request({
|
||||
url: '/access-boot/device/access',
|
||||
method: 'post',
|
||||
header: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 直连设备注册
|
||||
export function registerDevice(nDid) {
|
||||
return request({
|
||||
url: '/access-boot/device/register',
|
||||
method: 'post',
|
||||
data: {
|
||||
nDid
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user