mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 08:50:29 +08:00
fix: relocate cwos-portal decompiled output to correct path; remove nested directory
Former-commit-id: dc30d42a8c55ed8b2382a41dc2434233fbed9930
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
package cn.cloudwalk.elevator.em;
|
||||
|
||||
public enum AcsApplicationSourceEnum {
|
||||
ACCESS_CONTROL("ACCESS_CONTROL", "门禁应用"), CWOS_PORTAL("CWOS_PORTAL", "平台应用");
|
||||
|
||||
private final String code;
|
||||
private final String name;
|
||||
|
||||
AcsApplicationSourceEnum(String code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public static AcsApplicationSourceEnum getEnumByCode(String code) {
|
||||
for (AcsApplicationSourceEnum item : values()) {
|
||||
if (code.equals(item.code)) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
package cn.cloudwalk.elevator.em;
|
||||
|
||||
public enum AcsDeviceIdentifyTypeEnum {
|
||||
FRONT_REG(Integer.valueOf(0), "前端识别"), BACKEND_REG(Integer.valueOf(1), "后端识别");
|
||||
|
||||
private Integer code;
|
||||
private String name;
|
||||
|
||||
AcsDeviceIdentifyTypeEnum(Integer code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public static AcsDeviceIdentifyTypeEnum getEnumByCode(Integer code) {
|
||||
for (AcsDeviceIdentifyTypeEnum item : values()) {
|
||||
if (code.equals(item.getCode())) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
package cn.cloudwalk.elevator.em;
|
||||
|
||||
public enum AcsDeviceQueryTypeEnum {
|
||||
QUERY_MAIN(Integer.valueOf(1), "只查询主设备"), QUERY_MAIN_AND_SUB(Integer.valueOf(2), "查询主设备及其子设备");
|
||||
|
||||
private Integer code;
|
||||
private String message;
|
||||
|
||||
AcsDeviceQueryTypeEnum(Integer code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static AcsDeviceQueryTypeEnum getEnumByCode(Integer code) {
|
||||
for (AcsDeviceQueryTypeEnum item : values()) {
|
||||
if (code.equals(item.getCode())) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
package cn.cloudwalk.elevator.em;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public enum AcsDeviceSettingEnum {
|
||||
QUALITY_SCORE("qualityScore", "人脸抓拍质量分", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
TEMP_THRESHOLD("tempThreshold", "温度报警阈值", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
TEMP_MIN("tempMin", "温度最低值", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
MASK_THRESHOLD("maskThreshold", "口罩阈值", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
LIVE_STATE("liveState", "活体检测开关", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
TEMP_STATE("tempState", "温度控制开关", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
FACE_SIZE_MIN("faceSizeMin", "人脸最小尺寸", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
FACE_SIZE_MAX("faceSizeMax", "人脸最大尺寸", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
FACE_ONE_THRESHOLD("faceOneThreshold", "人脸1:1识别阈值", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
FACE_MANY_THRESHOLD("faceManyThreshold", "人脸1:N识别阈值", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
ACS_FACE_REG_THRESHOLD("ACS_FACE_REG_THRESHOLD", "人脸抓拍识别阈值", AcsApplicationSourceEnum.ACCESS_CONTROL);
|
||||
|
||||
private String code;
|
||||
private String remark;
|
||||
private AcsApplicationSourceEnum source;
|
||||
|
||||
public String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public AcsApplicationSourceEnum getSource() {
|
||||
return this.source;
|
||||
}
|
||||
|
||||
AcsDeviceSettingEnum(String code, String remark, AcsApplicationSourceEnum source) {
|
||||
this.code = code;
|
||||
this.remark = remark;
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
public static AcsDeviceSettingEnum getEnumByCode(String code) {
|
||||
for (AcsDeviceSettingEnum item : values()) {
|
||||
if (code.equals(item.code)) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static List<AcsDeviceSettingEnum> getEnumBySource(String source) {
|
||||
List<AcsDeviceSettingEnum> list = new ArrayList<>();
|
||||
for (AcsDeviceSettingEnum item : values()) {
|
||||
if (source.equals(item.source.getCode())) {
|
||||
list.add(item);
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
package cn.cloudwalk.elevator.em;
|
||||
|
||||
public enum AcsOpenDoorStatusEnum {
|
||||
INIT(Integer.valueOf(0), "初始化"), SUCESS(Integer.valueOf(1), "成功"), FAIL(Integer.valueOf(2), "失败");
|
||||
|
||||
private Integer code;
|
||||
private String message;
|
||||
|
||||
AcsOpenDoorStatusEnum(Integer code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static AcsOpenDoorStatusEnum getEnumByCode(Integer code) {
|
||||
for (AcsOpenDoorStatusEnum item : values()) {
|
||||
if (code.equals(item.getCode())) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
package cn.cloudwalk.elevator.em;
|
||||
|
||||
public enum AcsOperateStatusEnum {
|
||||
INIT(Integer.valueOf(0), "初始化"), MATCHED(Integer.valueOf(1), "已匹配");
|
||||
|
||||
private Integer code;
|
||||
private String message;
|
||||
|
||||
AcsOperateStatusEnum(Integer code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static AcsOperateStatusEnum getEnumByCode(Integer code) {
|
||||
for (AcsOperateStatusEnum item : values()) {
|
||||
if (code.equals(item.getCode())) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
package cn.cloudwalk.elevator.em;
|
||||
|
||||
public enum AcsOperateTypeEnum {
|
||||
REMOTE_OPEN_DOOR("REMOTE_OPEN_DOOR", "远程开门"), QRCODE_OPEN_DOOR("QRCODE_OPEN_DOOR", "小程序扫码开门");
|
||||
|
||||
private String code;
|
||||
private String message;
|
||||
|
||||
AcsOperateTypeEnum(String code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static AcsOperateTypeEnum getEnumByCode(String code) {
|
||||
for (AcsOperateTypeEnum item : values()) {
|
||||
if (code.equals(item.getCode())) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
package cn.cloudwalk.elevator.em;
|
||||
|
||||
public enum AcsPassTypeEnum {
|
||||
LONG_TIME(Integer.valueOf(0), "长期"), AUTO_PASS(Integer.valueOf(1), "自定义时间"), PASS_TIME(Integer.valueOf(2), "通行时间段");
|
||||
|
||||
private Integer code;
|
||||
private String message;
|
||||
|
||||
AcsPassTypeEnum(Integer code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static YesNoTypeEnum getEnumByCode(Integer code) {
|
||||
for (YesNoTypeEnum item : YesNoTypeEnum.values()) {
|
||||
if (code.equals(item.getCode())) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
package cn.cloudwalk.elevator.em;
|
||||
|
||||
public enum AlarmStateCodeEnum {
|
||||
OPERATION_FAILED("36000001", "操作失败"), EMPTY_PARAMETERS_WRONG("36000002", "参数不能为空"),
|
||||
INSERT_DATABSE_EREEOR("36000003", "插入数据库异常"), EMPTY_USER_ID("36000004", "ID不能为空"),
|
||||
PARAM_ERROR("36000005", "参数不符合要求"), SEARCH_INFORMATION_FAILED("36000006", "查询信息失败"),
|
||||
TASK_NAME_EXIST("36000007", "布控名称重复"), TASK_TYPE_NAME_EXIST("36000012", "布控类型名称重复"),
|
||||
DELETE_NOT_EXIST("36000008", "被删除资源不存在"), CONTROL_TASK_TYPE_HAS_TASK("36000009", "存在关联任务"),
|
||||
SAVE_TASK_TYPE_ERROR("36000010", "保存区控类型失败"), UPDATE_TASK_TYPE_ERROR("36000011", "更新区控类型失败"),
|
||||
FILE_SIZE_ILLEGAL("3600030", "文件大小超过"), WRONG_PARAMETERS("400", "参数错误"), SERVER_EXCEPTION("500", "服务器异常"),
|
||||
SUCCESS("00000000", "成功"), CWOS_FEIGN_FAILED("36000007", "调用cwos接口异常"), PAGE_QUERY_FAILED("36000008", "分页查询失败"),
|
||||
PARAM_REPEAT("36000009", "证件类型+证件号重复"), CONTROL_TASK_ID_NOT_EXIST("36000010", "任务编号不存在"),
|
||||
DEVICE_NOT_EXIST("36000011", "回放链接已失效"), LABEL_NAME_DUPLICATE_FAILED("10001056", "库名称重复"),
|
||||
LABEL_NAME_INVALID("10001050", "库名称无效"), LABEL_QUERY_FAILED("10001051", "标签查询失败"),
|
||||
LABEL_SAVE_FAILED("10001052", "标签保存失败"), LABEL_UPDATE_FAILED("10001053", "标签更新失败"),
|
||||
LABEL_DELETE_FAILED("10001054", "标签删除失败"), EMPTY_LABEL_NAME("10001055", "标签名称为空"),
|
||||
LABEL_PAGE_FAILED("10001055", "分页查询标签异常"), LABEL_LIST_FAILED("10001057", "列表查询标签异常"),
|
||||
LABEL_BRAND_FAILED("10001060", "查询车辆品牌异常"), VEHICLE_TYPE_FAILED("10001061", "查询车辆类型异常"),
|
||||
VEHICLE_DETAIL_ERROR("10001062", "车辆详情查询失败"), CODE_QUERY_ERROR("10001063", "查询失败"),
|
||||
LABEL_SIZE_FAILED("10001067", "库名称超过最大长度"), PLATE_NO_DUPLICATE("10001070", "车牌号重复添加"),
|
||||
VEHICLE_ADD_ERROR("10001071", "车辆添加失败"), VEHICLE_PROPERTY_UNQUALIFIED("10001087", "车辆属性不合格"),
|
||||
PLATE_NO_INVALID("10005202", "车牌号无效"), VEHICLE_TYPE_INVALID("10005203", "车牌类型无效"),
|
||||
VEHICLE_BRAND_INVALID("10005204", "车辆品牌无效"), VEHICLE_EDIT_FAIL("10001069", "车辆编辑失败"),
|
||||
VEHICLE_DELETE_ERROR("10001076", "车辆删除失败"), VEHICLE_PAGE_FAILED("10001064", "车辆分页查询失败"),
|
||||
VEHICLE_LIST_FAILED("10001065", "车辆LIST查询失败"), LABEL_BIND_VEHICLE("10001058", "该标签已被绑定具体车辆"),
|
||||
EMPTY_PIC_NAME("10001059", "图片地址为空"), PICTURE_FAILED("10001070", "图片不合法"),
|
||||
LABEL_BIND_PERSON("10002058", "该标签已被绑定具体人员"), LABEL_BIND_FIELD("10002059", "该标签绑定人员失败"),
|
||||
PERSON_PROPERTY_UNQUALIFIED("10002087", "人脸属性不合格"), PERSON_PIC_UNQUALIFIED("10002088", "人脸图片不合格"),
|
||||
PERSON_ORG_ADD_FEILD("10002089", "人员管理添加人员失败"), PERSON_ADD_ERROR("10002071", "人员添加失败"),
|
||||
PERSON_DUPLICATE("10002070", "人员重复添加"), PHONE_NO_INVALID("10005205", "手机号无效"), CARD_NO_INVALID("10005206", "身份证无效"),
|
||||
NAME_NO_INVALID("10005207", "名称无效"), CARD_NO_DUPLICATE("10005208", "身份证重复添加"),
|
||||
PERSON_EDIT_FAIL("10002069", "人员编辑失败"), PERSON_DELETE_ERROR("10002076", "人员删除失败"),
|
||||
PERSON_PAGE_FAILED("10002064", "人员分页查询失败"), PERSON_LIST_FAILED("10002065", "人员LIST查询失败"),
|
||||
ORGANIZATION_PERSONS_EMPTY("10002066", "人员管理人员信息为空"), FILE_TYPE_IS_INVALID("53060429", "上传文件类型不合法"),
|
||||
FILE_MAX_IS_ERROR("53060428", "上传文件超过最大大小"), FILE_UPLOAD_CONTROLLER_ERROR("80014013", "模块文件上传异常"),
|
||||
PIC_DELETE_ERROR("10001084", "图片删除失败"), EXPORT_TASK_DOWNLOAD_CENTER_FAILURE("36000008", "下载中心创建下载任务失败"),
|
||||
EXPORT_TASK_FAILURE("36000009", "添加导出任务失败"), EXPORT_TASK_TYPE_ERROR("36000010", "导出任务类型错误"),
|
||||
EXPORT_TASK_OVERLOAD_THRESHOLD("36000011", "查询导出记录超过设定阈值");
|
||||
|
||||
private String code;
|
||||
private String message;
|
||||
|
||||
AlarmStateCodeEnum(String code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package cn.cloudwalk.elevator.em;
|
||||
|
||||
public enum CompareTypeEnum {
|
||||
RECOG(Integer.valueOf(1), "1:N比对"), PERSON_CARD(Integer.valueOf(2), "人证比对"),
|
||||
ACS_BACK_RECOG(Integer.valueOf(3), "门禁1:N比对"), APP_BACK_RECOG(Integer.valueOf(4), "应用端1:N比对");
|
||||
|
||||
private Integer code;
|
||||
private String message;
|
||||
|
||||
CompareTypeEnum(Integer code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static CompareTypeEnum getEnumByCode(Integer code) {
|
||||
for (CompareTypeEnum item : values()) {
|
||||
if (code.equals(item.getCode())) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package cn.cloudwalk.elevator.em;
|
||||
|
||||
public enum EngineAddressEnum {
|
||||
PORTAL_USER_PAGE("用户查询接口", "/portal/user/manage/page"),
|
||||
PERSON_PROPERTIES_LIST("查询商户对应的员工属性", "/component/person/properties/list"),
|
||||
NINCACOMMON_AREA_GET_ALL_TREE("获取区域树状结构", "/sysetting/deviceArea/tree"),
|
||||
COMMON_VEHICLE_GET_ALL_LABLES("获取车辆管理标签信息", "/vm/label/list"),
|
||||
COMMON_VEHICLE_VM_VEHICLE_LABELREF("获取车辆管理车辆分页信息", "/vm/vehicle/control/labelRef"),
|
||||
COMMON_VEHICLE_VM_VEHICLE_LIST("批量获取车辆管理车辆信息", "/vm/vehicle/list"),
|
||||
CWOS_DEVICE_GET("设备列表查询", "/component/device/list"), CW0S_DEVICE_DETAIL("设备详情", "/core/atomic/device/detail"),
|
||||
CWOS_DEVICE_SETTING("下发参数到设备", "/server/push/55000"),
|
||||
CWOS_AREA_GET_ALL_TREE("获取区域树状结构", "/component/device/area/get/alltree"),
|
||||
CWOS_QUERY_DEVICE_APPLICATION("查询设备与应用关联列表", "/component/device/app/list"),
|
||||
CWOS_BIND_DEVICE_APPLICATION("绑定设备与应用", "/component/device/app/add"),
|
||||
CWOS_SPLIT_DEVICE_APPLICATION("解绑设备与应用", "/component/device/app/delete"),
|
||||
CWOS_QUERY_APPLICATION_ID("查询应用ID", "/res/application/instance/query"),
|
||||
CWOS_BIND_DEVICE_IMAGESTORE("绑定图库与设备", "/component/device/imagestore/add"),
|
||||
CWOS_SPLIT_DEVICE_IMAGESTORE("解除绑定图库与设备", "/component/device/imagestore/delete"),
|
||||
CWOS_BIND_IMAGESTORE_APPLICATION("绑定图库与应用", "/core/application/group/add"),
|
||||
CWOS_SPLIT_IMAGESTORE_APPLICATION("解绑图库与应用", "/core/application/group/delete"),
|
||||
CWOS_ORGANIZATION_TREE("查询机构树型结构", "/component/organization/tree"),
|
||||
CWOS_BIOLOGY_IMAGE_COMPARE("单库或多库比对", "/component/biology/tool/feature/query"),
|
||||
CWOS_BIOLOGY_PERSON_DETAIL("查询人员信息详情", "/component/person/detail"),
|
||||
CWOS_BIOLOGY_PERSON_LIST("查询人员信息", "/component/person/listPerson"),
|
||||
CWOS_BIOLOGY_IMAGESTORE_ADD("新增图库", "/component/imagestore/add"),
|
||||
CWOS_BIOLOGY_IMAGESTORE_EDIT("编辑图库", "/component/imagestore/edit"),
|
||||
CWOS_BIOLOGY_IMAGESTORE_LIST("查询图库", "/component/imagestore/list"),
|
||||
COWS_BIOLOGY_IMAGESTORE_DELETE("删除图库", "/component/imagestore/delete"),
|
||||
CWOS_BIOLOGY_IMAGESTORE_DETAIL("图库详情", "/component/imagestore/detail"),
|
||||
CWOS_BIOLOGY_PERSON_PAGE("分页查询人员", "/component/person/page"),
|
||||
CWOS_BIOLOGY_PERSON_ADD("新增人员", "/component/person/add"),
|
||||
CWOS_BIOLOGY_PERSON_EDIT("编辑人员", "/component/person/edit"),
|
||||
CWOS_BIOLOGY_PERSON_DELETE("删除人员", "/component/person/delete"),
|
||||
CWOS_BIOLOGY_LABEL_GETALLLABELS("查询标签列表", "/biology/label/getAllLabels"),
|
||||
CWOS_BIOLOGY_LABLE_ADD("新增标签", "/biology/label/add"), CWOS_BIOLOGY_LABLE_EDIT("编辑标签", "/biology/label/edit"),
|
||||
CWOS_BIOLOGY_LABLE_DELETE("删除标签", "/biology/label/delete"),
|
||||
CWOS_BIOLOGY_LABLE_PERSONS_ADD("标签人员新增", "/biology/label/personsAdd"),
|
||||
CWOS_BIOLOGY_LABLE_PERSONS_DEL("标签人员删除", "/biology/label/personsDel"),
|
||||
CWOS_FILE_UPLOAD("文件上传", "/portal/fileManager/{moduleCategory}/fileUpload"),
|
||||
CWOS_FILE_DELETE("文件删除", "/portal/fileManager/remove/images"),
|
||||
CWOS_FILE_PART_INIT("分片上传文件初始化", "/portal/file/part/init"),
|
||||
CWOS_FILE_PART_FINISH("分片上传文件结束", "/portal/file/part/finish"), CWOS_FILE_APPEND("文件追加", "/portal/file/part/append"),
|
||||
PINEAPPLE_FACE_FEATURE_GET("人脸特征提取", "staticdb/search/feature"),
|
||||
PINEAPPLE_FACE_SEARCH_MULTIPLE("多库人脸检索", "staticdb/search/multiple"),
|
||||
PINEAPPLE_STRUCTURE_ATTRIBUTE("全结构化属性", "structure/recognize"),
|
||||
PINEAPPLE_CLUSTER_FACE_ADD("特征入库", "api/cluster/feature/add"),
|
||||
PINEAPPLE_CLUSTER_START_DEVICE("按groupId聚类", "api/cluster/doClusterByDeviceId"),
|
||||
PINEAPPLE_CLUSTER_GET_TASK_INFO("获取聚类任务信息", "api/cluster/getAllTaskInfo"),
|
||||
PINEAPPLE_CLUSTER_STOP("停止聚类", "api/cluster/stopIncreCluster"),
|
||||
PINEAPPLE_CLUSTER_GROUP_REMOVE("删除聚类库", "api/cluster/group/base/remove"),
|
||||
PINEAPPLE_ENGINE_PAGE_INFO("引擎分页查询", "gateway/config/server/getbypage"),
|
||||
SEND_MESSAGE_TO_MQTT("发送数据到mqtt", "mqtt/publish"), GET_ALIVE_CLIENTS_OF_MQTT("获得所有存活的客户端", "mqtt/getClients"),
|
||||
ALARM_OCCUR("声光报警器触发", "mqtt/publish"), VISITOR_QUERY("查询识别记录详情", "/intelligent/visitor/record/query");
|
||||
|
||||
private final String api;
|
||||
private final String address;
|
||||
|
||||
EngineAddressEnum(String api, String address) {
|
||||
this.api = api;
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getApi() {
|
||||
return this.api;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
package cn.cloudwalk.elevator.em;
|
||||
|
||||
public enum OpenDoorTypeEnum {
|
||||
FACE("FACE", "人脸开门"), APP("APP", "远程开门"), GUARD_CARD("GUARD_CARD", "门禁卡开门"), PASSWORD("PASSWORD", "密码开门"),
|
||||
ID_CARD("ID_CARD", "身份证开门"), FACE_GUARD_CARD("FACE_GUARD_CARD", "人脸门禁卡开门"), INTERCOM("INTERCOM", "室内机开门"),
|
||||
ONE("01", "人脸开门"), TWO("02", "门禁卡开门"), THREE("03", "二维码开门");
|
||||
|
||||
private String code;
|
||||
private String remark;
|
||||
|
||||
public String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
OpenDoorTypeEnum(String code, String remark) {
|
||||
this.code = code;
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public static String getEnumByCode(String code) {
|
||||
for (OpenDoorTypeEnum item : values()) {
|
||||
if (code.equals(item.code) || code.toUpperCase().equals(item.code)) {
|
||||
return item.remark;
|
||||
}
|
||||
}
|
||||
return code;
|
||||
}
|
||||
|
||||
public static OpenDoorTypeEnum getOpenDoorTypeEnumByCode(String code) {
|
||||
for (OpenDoorTypeEnum item : values()) {
|
||||
if (code.equals(item.code) || code.toUpperCase().equals(item.code)) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
package cn.cloudwalk.elevator.em;
|
||||
|
||||
public enum YesNoTypeEnum {
|
||||
N(Integer.valueOf(0), "否"), Y(Integer.valueOf(1), "是");
|
||||
|
||||
private Integer code;
|
||||
private String message;
|
||||
|
||||
YesNoTypeEnum(Integer code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static YesNoTypeEnum getEnumByCode(Integer code) {
|
||||
for (YesNoTypeEnum item : values()) {
|
||||
if (code.equals(item.getCode())) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user