package com.nova.sankuai.domain.enums; import io.swagger.annotations.ApiModel; /** * 回调来源 * */ @ApiModel(value = "回调来源") public enum CallbackSourceEnum { HZX(1, "汇智信"); private Integer code; private String value; CallbackSourceEnum(int code, String value) { this.code = code; this.value = value; } public static String value(Integer code) { if (code != null) { for (CallbackSourceEnum m : CallbackSourceEnum.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; } }