功能调试
This commit is contained in:
@@ -20,7 +20,7 @@ export function getDevCount(id) {
|
||||
url: '/cs-device-boot/deviceUser/devCount',
|
||||
method: 'post',
|
||||
|
||||
data: {id},
|
||||
data: { id },
|
||||
})
|
||||
}
|
||||
|
||||
@@ -48,12 +48,13 @@ export function addDevice(params) {
|
||||
}
|
||||
|
||||
// 直连设备注册
|
||||
export function registerDevice(nDid) {
|
||||
export function registerDevice(nDid, type) {
|
||||
return request({
|
||||
url: '/access-boot/device/register',
|
||||
method: 'post',
|
||||
data: {
|
||||
nDid,
|
||||
type,
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -95,7 +96,7 @@ export const transferDevice = (id, userId) => {
|
||||
method: 'POST',
|
||||
data: {
|
||||
ids: id,
|
||||
userId: userId || uni.getStorageSync('userInfo').userIndex
|
||||
userId: userId || uni.getStorageSync('userInfo').userIndex,
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -163,7 +164,7 @@ export const queryDeviceUser = (devId) => {
|
||||
url: '/cs-device-boot/deviceUser/queryUserById',
|
||||
method: 'POST',
|
||||
data: {
|
||||
devId
|
||||
devId,
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -175,4 +176,22 @@ export const cancelShare = (params) => {
|
||||
method: 'POST',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// 取消调试
|
||||
export const cancelDebug = (params) => {
|
||||
return request({
|
||||
url: '/cs-device-boot/EquipmentDelivery/deleteTest',
|
||||
method: 'POST',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 完成调试
|
||||
export const finishDebug = (params) => {
|
||||
return request({
|
||||
url: '/cs-device-boot/EquipmentDelivery/testcompletion',
|
||||
method: 'POST',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user