package com.nova.sankuai.domain.api.yixin.enums; /** * @author weikangdi * @create 2022/3/30 */ public enum YiXinApprovalResultEnum { WAIT(0, "等待"), SUCCESS(1, "审批成功"), REFUSE(2, "审批失败"), CHECK_FAIL(3, "初筛失败"), ; private Integer code; private String value; YiXinApprovalResultEnum(int code, String value) { this.code = code; this.value = value; } public static String value(Integer code) { if (code != null) { for (YiXinApprovalResultEnum m : YiXinApprovalResultEnum.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; } }