【新增功能】IOT:设备数据展示

This commit is contained in:
安浩浩
2024-11-03 00:15:44 +08:00
parent 05245855eb
commit 9ea45b3d14
8 changed files with 198 additions and 8 deletions

View File

@@ -23,6 +23,12 @@ export enum ValidateTypeEnum {
WEAK = 0, // 弱校验
NONE = 1 // 免校验
}
// IOT 产品设备类型枚举类 0: 直连设备, 1: 网关子设备, 2: 网关设备
export enum DeviceTypeEnum {
DEVICE = 0, // 直连设备
GATEWAY_SUB = 1, // 网关子设备
GATEWAY = 2 // 网关设备
}
// IoT 产品 API
export const ProductApi = {
@@ -63,6 +69,6 @@ export const ProductApi = {
// 查询产品(精简)列表
getSimpleProductList() {
return request.get({ url: '/iot/product/list-all-simple' })
return request.get({ url: '/iot/product/simple-list' })
}
}