【功能完善】IoT:设备新增时,增加 deviceKey、serialNumber、picUrl 等字段

This commit is contained in:
YunaiV
2024-12-14 16:10:23 +08:00
parent 8b59786fbf
commit dde5911b5f
12 changed files with 235 additions and 119 deletions

View File

@ -91,6 +91,11 @@ export const DeviceApi = {
return await request.get({ url: `/iot/device/count?productId=` + productId })
},
// 获取设备的精简信息列表
getSimpleDeviceList: async (deviceType?: number) => {
return await request.get({ url: `/iot/device/simple-list?`, params: { deviceType } })
},
// 获取设备属性最新数据
getDevicePropertiesLatestData: async (params: any) => {
return await request.get({ url: `/iot/device/data/latest`, params })