forked from zhangyuan/epmet-cloud-lingshan
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
894 B
50 lines
894 B
package com.epmet.enums;
|
|
|
|
/**
|
|
* 系统环境变量枚举类
|
|
* dev|test|prod
|
|
*
|
|
* @author jianjun liu
|
|
* @date 2020-07-03 11:14
|
|
**/
|
|
public enum ThirdPlatformEnum {
|
|
/**
|
|
* 平阴联动指挥平台
|
|
*/
|
|
PINGYIN_LIANDONG("pyld", "平阴联动指挥平台", "pyldApiService"),
|
|
;
|
|
|
|
private String code;
|
|
private String name;
|
|
private String apiService;
|
|
|
|
|
|
ThirdPlatformEnum(String code, String name, String apiService) {
|
|
this.code = code;
|
|
this.name = name;
|
|
this.apiService = apiService;
|
|
}
|
|
|
|
public static ThirdPlatformEnum getEnum(String code) {
|
|
ThirdPlatformEnum[] values = ThirdPlatformEnum.values();
|
|
for (ThirdPlatformEnum value : values) {
|
|
if (value.getCode().equals(code)) {
|
|
return value;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
|
|
public String getCode() {
|
|
return code;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public String getApiService() {
|
|
return apiService;
|
|
}
|
|
}
|
|
|