vince
2023-11-09 93e01fa050330ead95041ed11cc85e9765c19fc1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.fzzy.gateway.hx2023;
 
import org.apache.commons.lang.math.RandomUtils;
 
/**
 * 常量
 */
public class ScConstant {
 
    public static String API_URL_AUTH = "${auth}/authorize/login";
 
 
    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";
 
}