package com.iformall.enums;

/**
 * Created by luozukai
 */
public enum EnumMsgMqKey {
    DEFAULT("key-1", "默认"),
    ;

    public static EnumMsgMqKey getEnum(String code) {
        for (EnumMsgMqKey value : values()) {
            if (value.getCode().equals(code)) {
                return value;
            }
        }
        return null;
    }

    private String code;
    private String message;

    EnumMsgMqKey(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
