package com.doumee.core.haikang.model;
|
|
import com.doumee.core.utils.Constants;
|
import lombok.Data;
|
import org.slf4j.Logger;
|
import org.slf4j.LoggerFactory;
|
|
@Data
|
public class HKConstants {
|
private Logger logger = LoggerFactory.getLogger(HKConstants.class);
|
//海康平台根据现场环境配置http还是https
|
public static final String RESPONSE_SUCCEE = "0";
|
public static String https ;
|
/**
|
* 能力开放平台的网站路径 路径不用修改,就是/artemis
|
*/
|
public static final String ARTEMIS_PATH = "/artemis";
|
|
/**
|
* 接口地址集合
|
*/
|
public interface InterfacePath{
|
String doorEvents = "/api/acs/v2/door/events";//门禁事件查询
|
String rootOrg = "/api/resource/v1/org/rootOrg";//获取跟组织
|
String addBatchOrg = "/api/resource/v1/org/batch/add";//批量新增组织
|
String delBatchOrg = "/api/resource/v1/org/batch/delete";//批量删除组织
|
String editOrg = "/api/resource/v1/org/single/update";//修改组织
|
String addUser = "/api/resource/v2/person/single/add";//添加人员
|
String addBatchUser = "/api/resource/v1/person/batch/add";//批量添加人员
|
String editUser = "/api/resource/v1/person/single/update";//修改人员
|
String delBatchUser = "/api/resource/v1/person/batch/delete";//批量删除人员
|
String addFace = "/api/resource/v1/face/single/add";//添加人脸
|
String editFace = "/api/resource/v1/face/single/update";//修改人脸
|
String delFace = "/api/resource/v1/face/single/delete";//删除人脸
|
String acsDeviceList = "/api/resource/v2/acsDevice/search";//查询门禁设备列表v2
|
String acsDeviceTimeRangeList = "/api/resource/v1/acsDevice/timeRange";//增量获取门禁设备数据
|
String parkAddition = "/api/pms/v2/parkingSpace/reservations/addition";//车位预约v2
|
String parkDeletion= "/api/pms/v1/parkingSpace/reservations/deletion";//车位取消预约v2
|
String carChargeAddtion= "/api/pms/v1/car/charge";//固定车充值包期
|
String carChargeDeletion= "/api/pms/v1/car/charge/deletion";//固定车取消包期
|
String getParkList= "/api/resource/v1/park/parkList";//获取停车库列表
|
String getEntranceList= "/api/resource/v1/entrance/entranceList";//获取出入口列表
|
String visitAppiontment= "/api/visitor/v2/appointment";//访客预约v2
|
String visitAppiontmentMDJ= "/api/visitor/v1/appointment/registration";//访客预约免登记v2
|
String visitCancel= "/api/visitor/v1/appointment/cancel";//取消访客预约
|
String facePicture= "/api/resource/v1/person/picture";//提取用户人脸照片
|
String privilegeGroup= "/api/visitor/v1/privilege/group";//查询访客权限组
|
}
|
|
/**
|
* 顔色枚举
|
*/
|
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;
|
}
|
|
}
|
|
|
|
}
|