软适配功能配置优化

yun-zuoyi
wei.peng 6 years ago
parent ca28ae6cad
commit 21241e45ca

@ -480,12 +480,12 @@ public class BlockSoftSwitchEnumUtil {
}
/**
*
* WebService Server
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SUIT_SERVER_WEB_SERVICE{
ACTIVE(40001,"serverWebServiceHello","hello"),
SCHEDULE(40002,"serverWebServiceSendEmail","邮件测试");
ACTIVE(40002,"serverWebServiceHello","hello"),
SCHEDULE(40004,"serverWebServiceSendEmail","邮件测试");
private int value;
private String description;
@ -516,4 +516,40 @@ public class BlockSoftSwitchEnumUtil {
}
}
/**
* WebService Server
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SUIT_SERVER_WEB_CLIENT{
ACTIVE(40001,"softswitchClient","软适配服务邮件服务");
private int value;
private String description;
private String clazzName;
SUIT_SERVER_WEB_CLIENT(int value, String clazzName,String description) {
this.value = value;
this.clazzName = clazzName;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

Loading…
Cancel
Save