package com.nova.sankuai.domain.enums.huizhixin;
|
|
import io.swagger.annotations.ApiModel;
|
|
@ApiModel(value = "客户贷前信息-学历")
|
public enum LoanEducationEnum {
|
|
Education_1("ED001", "研究生及以上"),
|
Education_2("ED002", "本科"),
|
Education_3("ED003", "大专"),
|
Education_4("ED007", "高中及以下"),
|
;
|
|
|
private String code;
|
private String value;
|
|
LoanEducationEnum(String code, String value) {
|
this.code = code;
|
this.value = value;
|
}
|
|
public static String value(String code) {
|
if (code != null) {
|
for (LoanEducationEnum m : LoanEducationEnum.values()) {
|
if (m.getCode().equals(code)) {
|
return m.getValue();
|
}
|
}
|
}
|
return null;
|
}
|
|
|
public String getCode() {
|
return code;
|
}
|
|
public void setCode(String code) {
|
this.code = code;
|
}
|
|
public String getValue() {
|
return value;
|
}
|
|
public void setValue(String value) {
|
this.value = value;
|
}
|
|
}
|