package com.nova.sankuai.domain.enums; import io.swagger.annotations.ApiModel; /** * @author 51913 */ @ApiModel(value = "客户用户表业务类型枚举") public enum CustomerUserBusinessTypeEnum { RONG_YI_TUI("RONGYITUI", "融易推"), ; private String code; private String value; CustomerUserBusinessTypeEnum(String code, String value) { this.code = code; this.value = value; } public static String value(String code) { if (code != null) { for (UserTypeEnum m : UserTypeEnum.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; } }