功能调试

This commit is contained in:
仲么了
2023-09-18 15:55:34 +08:00
parent 5234c207b4
commit 5f6a924233
7 changed files with 232 additions and 69 deletions

View File

@@ -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,
})
}