package com.nova.sankuai.domain.enums.huizhixin; import io.swagger.annotations.ApiModel; @ApiModel(value = "客户贷前信息-第二关系") public enum LoanSecondContactEnum { SecondContact_1("CT005", "朋友"), SecondContact_2("CT006", "同事"), SecondContact_3("CT007", "同学"), SecondContact_4("CT100", "其他"), ; private String code; private String value; LoanSecondContactEnum(String code, String value) { this.code = code; this.value = value; } public static String value(String code) { if (code != null) { for (LoanSecondContactEnum m : LoanSecondContactEnum.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; } }