From 86d368337175a7d7eed5e9330bd80a838ab4f396 Mon Sep 17 00:00:00 2001
From: jiazx0107@163.com <jiazx0107@163.com>
Date: 星期四, 09 十一月 2023 17:25:23 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/igds-api-gateway' into igds-api-gateway
---
src/main/java/com/fzzy/gateway/hx2023/ScConstant.java | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/fzzy/gateway/hx2023/ScConstant.java b/src/main/java/com/fzzy/gateway/hx2023/ScConstant.java
index 7582ed4..72ad561 100644
--- a/src/main/java/com/fzzy/gateway/hx2023/ScConstant.java
+++ b/src/main/java/com/fzzy/gateway/hx2023/ScConstant.java
@@ -1,5 +1,7 @@
package com.fzzy.gateway.hx2023;
+import org.apache.commons.lang.math.RandomUtils;
+
/**
* 甯搁噺
*/
@@ -10,5 +12,29 @@
public static String MESSAGE_TYPE_REPORT_PROPERTY = "REPORT_PROPERTY";
+ public static String MESSAGE_TYPE_INVOKE_FUNCTION = "INVOKE_FUNCTION";
+
+ /**
+ * 绮儏閲囨寚浠�
+ */
+ public static String FUNCTION_getTAndRHInfo = "getTAndRHInfo";
+
+
+ public static String getMessageId() {
+ return System.currentTimeMillis() + RandomUtils.nextInt(1000) + "";
+ }
+
+
+ public static int CODE_200 = 200;
+
+ /**
+ * 涓嬪彂鎸囦护鍥炲鎶ユ枃topic
+ */
+ public static String TOPIC_REPORT = "/${productId}/${deviceId}/properties/report";
+
+ /**
+ * 璁惧鐩稿叧淇℃伅鎭㈠鎶ユ枃-topic
+ */
+ public static String TOPIC_MESSAGE_REPORT = "/device/${productId}/${deviceId}/message/property/report";
}
--
Gitblit v1.9.3