|
@@ -50,10 +50,10 @@ public enum AppTypeEnum {
|
|
ADMIN_CRAWLER(888888, "后台-爬虫"),
|
|
ADMIN_CRAWLER(888888, "后台-爬虫"),
|
|
OTHERS(999999, "其他的调用方,比如后台管理系统");
|
|
OTHERS(999999, "其他的调用方,比如后台管理系统");
|
|
|
|
|
|
- private Integer code;
|
|
|
|
|
|
+ private int code;
|
|
private String desc;
|
|
private String desc;
|
|
|
|
|
|
- public Integer getCode() {
|
|
|
|
|
|
+ public int getCode() {
|
|
return code;
|
|
return code;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -65,16 +65,4 @@ public enum AppTypeEnum {
|
|
this.code = code;
|
|
this.code = code;
|
|
this.desc = desc;
|
|
this.desc = desc;
|
|
}
|
|
}
|
|
-
|
|
|
|
- public static AppTypeEnum valueOf(Integer code) {
|
|
|
|
- if (code == null) {
|
|
|
|
- return null;
|
|
|
|
- }
|
|
|
|
- for (AppTypeEnum appTypeEnum : AppTypeEnum.values()) {
|
|
|
|
- if (appTypeEnum.getCode().intValue() == code.intValue()) {
|
|
|
|
- return appTypeEnum;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- return null;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|