package com.iformall.enums;


/**
 * @author luozukai
 * 点位类型1固定点位2临时促销点位3宣传点位4ATM点位5仓库点位6其他点位
 */

public enum EnumPointType {

    POINT1(1, "固定点位"),
    POINT2(2, "临时促销点位"),
    POINT3(3, "宣传点位"),
    POINT4(4, "ATM点位"),
    POINT5(5, "仓库点位"),
    OTHER(6, "其他点位"),
    ;

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

    private Integer code;
    private String message;

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

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
