From 5e66e66dc2561c86893d483cab57128ebbd9bc5b Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期一, 09 十月 2023 13:34:22 +0800 Subject: [PATCH] 集成mqtt --- server/services/src/main/java/com/doumee/core/constants/Constants.java | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/server/services/src/main/java/com/doumee/core/constants/Constants.java b/server/services/src/main/java/com/doumee/core/constants/Constants.java index 3bc8d32..1173448 100644 --- a/server/services/src/main/java/com/doumee/core/constants/Constants.java +++ b/server/services/src/main/java/com/doumee/core/constants/Constants.java @@ -28,8 +28,14 @@ public static final String FILE_DIR ="FILE_DIR" ; public static final String PRIVATE_KEY = "PRIVATE_KEY"; public static String REDIS_DEBUG_STR="test_"; + public interface MqttTopic{ + //寮�閿� + String openLock = "OPENLOCK"; + //鍏抽棴閿佸ご + String closeLock = "CLOSELOCK"; + } - /** + /** * 鏁版嵁鏉冮檺鑼冨洿锛�0鍙湅鑷繁锛�1鍙湅鑷繁鎵�鍦ㄦ牎鍖猴紱2鐪嬪叏閮ㄦ牎鍖猴紱3鐪嬫寚瀹氭牎鍖猴紙澶氶�夛級 */ public interface PermissionType{ @@ -45,6 +51,12 @@ int fail = 3; int over = 4; } + public interface goodsorderPayStatus{ + int waitPay =0; + int pay =1; + } + + public static String getUUID(){ return UUID.randomUUID().toString().replace("-",""); } @@ -99,6 +111,7 @@ public static final Integer ZERO = 0 ; public static final Integer ONE = 1 ; public static final Integer TWO = 2 ; + public static final Integer THREE = 3 ; public static int formatIntegerNum(Integer num){ if(num == null){ -- Gitblit v1.9.3