|
|
@@ -1,5 +1,10 @@
|
|
|
package com.github.microservice.dataConfig;
|
|
|
|
|
|
+import com.github.microservice.iot.InitIotParam;
|
|
|
+import com.github.microservice.types.FunctionType;
|
|
|
+
|
|
|
+import java.util.HashMap;
|
|
|
+
|
|
|
/**
|
|
|
* @author TRX
|
|
|
* @date 2024/10/16
|
|
|
@@ -9,7 +14,28 @@ public class IotIdentifierConfig {
|
|
|
// 通知权限发生变化 标识符
|
|
|
public static final String permissionNotice = "permissionNotice";
|
|
|
|
|
|
+ // 取得设备关联的用户信息
|
|
|
+ public static final String queryDeviceBindUsers = "queryDeviceBindUsers";
|
|
|
+
|
|
|
+ // 取得设备关联的用户详情信息
|
|
|
+ public static final String queryDeviceUsersInfo = "queryDeviceUsersInfo";
|
|
|
+
|
|
|
+
|
|
|
// 单次通知网关设备权限发生变化的设备数量
|
|
|
public static final int maxNoticeSize = 200;
|
|
|
|
|
|
+ public static HashMap<String, InitIotParam> map = new HashMap<>();
|
|
|
+
|
|
|
+ static {
|
|
|
+ map.put(permissionNotice, InitIotParam.builder()
|
|
|
+ .name("网关设备权限变更通知").identifier(permissionNotice).iotTopic("/v1/gateway/${gateWayId}/permissionNotice").functionType(FunctionType.Server).build());
|
|
|
+
|
|
|
+ map.put(queryDeviceBindUsers, InitIotParam.builder()
|
|
|
+ .name("查询设备权限").identifier(queryDeviceBindUsers).iotTopic("/v1/gateway/${gateWayId}/queryDeviceBindUsers").functionType(FunctionType.Event).build());
|
|
|
+
|
|
|
+ map.put(queryDeviceUsersInfo, InitIotParam.builder()
|
|
|
+ .name("查询设备对应的用户信息").identifier(queryDeviceUsersInfo).iotTopic("/v1/gateway/${gateWayId}/queryDeviceUsersInfo").functionType(FunctionType.Event).build());
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|