package com.jwipc.constant;

import lombok.Getter;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
@Getter
public enum FreezeConst {
    FREEZE(1,"冻结")
    ,NORMAL(0,"正常");

    private Integer code;
    private String msg;

    FreezeConst(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static FreezeConst getFlag(int code){
        for (FreezeConst value : FreezeConst.values()) {
            if(value.getCode()==code){
                return value;
            }
        }
        return null;
    }
}
