sweb统一登录--添加platform枚举类

yun-zuoyi
castle.zang 3 years ago
parent e4b9d076f2
commit 18400f3c7e

@ -94,7 +94,12 @@ public class CommonEnumUtil {
/**
*
*/
LEO(50, 8234, 0, 106000000L, "impp-leo", "智能调度系统");
LEO(50, 8234, 0, 106000000L, "impp-leo", "智能调度系统"),
/**
* SWEB
*/
SWEB_VENDOR(666,8810,0,0,"sweb-vendor","供应商客户端服务");
/**
* ID
@ -1059,7 +1064,66 @@ public class CommonEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum AUTH_PLATFORM {
PC_IMPP_CORE(10, "PC-IMPP", "PC平台管理端"),
PC_WMS_SWEB(20, "PC-SWEB", "PC_SWEB后台管理端");
private int value;
private String name;
private String description;
AUTH_PLATFORM() {
}
AUTH_PLATFORM(int value, String name, String description) {
this.value = value;
this.name = name;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getName() {
return name;
}
public static AUTH_PLATFORM valueOf(int val) {
AUTH_PLATFORM tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i];
}
}
return tmp;
}
/**
* -1
*
* @param desc
* @return
*/
public static int descOf(String desc) {
int tmp = -1;
for (int i = 0; i < values().length; i++) {
if (values()[i].name.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
*
*/

Loading…
Cancel
Save