package com.nova.sankuai.domain.enums.customerinfo; import io.swagger.annotations.ApiModel; /** * @author weikangdi * 客户资产信息-企业信息 */ @ApiModel(value = "客户资产信息-企业信息枚举") public enum EnterpriseInfoEnum { Enterprise_1(0, "无"), Enterprise_2(1, "有"); private Integer code; private String value; EnterpriseInfoEnum(int code, String value) { this.code = code; this.value = value; } public static String value(Integer code) { if (code != null) { for (EnterpriseInfoEnum m : EnterpriseInfoEnum.values()) { if (m.getCode() == code.intValue()) { return m.getValue(); } } } return null; } public Integer getCode() { return code; } public void setCode(Integer code) { this.code = code; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } }