package com.nova.sankuai.domain.enums.huizhixin; import io.swagger.annotations.ApiModel; @ApiModel(value = "客户贷前信息-月收入") public enum LoanMonthlySalaryEnum { MonthlySalary_1("PA006", "2000 以下"), MonthlySalary_2("PA007", "2000-5000"), MonthlySalary_3("PA008", "5000-8000"), MonthlySalary_4("PA009", "8000-12000"), MonthlySalary_5("PA010", "12000-15000"), MonthlySalary_6("PA011", "15000-20000"), MonthlySalary_7("PA012", "20000 以上"), ; private String code; private String value; LoanMonthlySalaryEnum(String code, String value) { this.code = code; this.value = value; } public static String value(String code) { if (code != null) { for (LoanMonthlySalaryEnum m : LoanMonthlySalaryEnum.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; } }