package com.bcxin.Infrastructures.enums;

public enum  CerType {

    Qualification{
        @Override
        public String getTypeName(){return "资格证";}

        @Override
        public String getTypeValue(){return "1";}
    },
    Grade{
        @Override
        public String getTypeName(){return "等级证";}
        @Override
        public String getTypeValue(){return "2";}
    };

    public abstract String getTypeName();
    public abstract String getTypeValue();


    public static CerType coventTypeValue(String typeValue){
        switch (typeValue){
            case "1":
                return CerType.Qualification;
            case "2":
                return CerType.Grade;
        }

        return CerType.Qualification;
    }
}
