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; } } }