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,18 @@ 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; }