jiaosong
2023-12-06 be04a78ca5670dfbeb821bc42f95150447e251dd
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package com.doumee.core.utils.haikang.base;
 
import com.doumee.core.utils.Constants;
import lombok.Data;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
 
import java.util.Arrays;
import java.util.List;
 
@Data
public class HKConstants {
    private Logger logger = LoggerFactory.getLogger(HKConstants.class);
    //海康平台根据现场环境配置http还是https
    public static String https ;
    /**
     * 能力开放平台的网站路径   路径不用修改,就是/artemis
     */
    public static final String ARTEMIS_PATH = "/artemis";
 
    /**
     * 接口地址集合
     */
    public interface InterfacePath{
        String doorEvents = "/api/acs/v2/door/events";
    }
 
    /**
     * 顔色枚举
     */
    public  enum Colors {
 
        SYSTEM(0, "系统用户"  )
        ;
        // 成员变量
        private String name;
        private int key;
 
        // 构造方法
        Colors(int key, String name ) {
            this.name = name;
            this.key = key;
        }
 
        // 普通方法
        public static String getName(int index) {
            for (Constants.UserType c : Constants.UserType.values()) {
                if (c.getKey() == index) {
                    return c.getName();
                }
            }
            return null;
        }
 
 
        // get set 方法
        public String getName() {
            return name;
        }
 
        public void setName(String name) {
            this.name = name;
        }
 
        public int getKey() {
            return key;
        }
 
        public void setKey(int key) {
            this.key = key;
        }
 
    }
 
 
 
}