package com.fzzy.igds.dzhwk.constant; /** * */ public enum AiSerType { TYPE_01("01", "01-AI服务器"), TYPE_02("02", "02-AI摄像头"), TYPE_99("99", "99-独立终端"); private String code; private String msg; AiSerType(String code, String msg) { this.code = code; this.msg = msg; } public String getCode() { return code; } public String getMsg() { return msg; } public static String getMsg(String code) { if (null == code) return null; if (DeviceSerType.TYPE_01.getCode().equals(code)) return DeviceSerType.TYPE_01.getMsg(); if (DeviceSerType.TYPE_02.getCode().equals(code)) return DeviceSerType.TYPE_02.getMsg(); return DeviceSerType.TYPE_99.getMsg(); } }