package com.thinkunion.park.service.common.enums.parking;

import lombok.AllArgsConstructor;

/**
 * 车辆类型枚举
 * @author LLC
 */
@AllArgsConstructor
public enum PlaceUsedTypeEnum {



//    MONTH_CAR_PLACE("1", "月卡车车位"),
//    STAGGERED_CAR_PLACE("2", "错时车位"),
//    CHANGE_CAR_PLACE("3", "动态车位"),
//    AB_CAR_PLACE("4", "AB车位"),
//    PROPERTY_CAR_PLACE("4", "产权车"),
//    FIXED_CAR_PLACE("5", "内部车"),
    MONTH_CAR_PLACE("1", "月卡车位"),
    STAGGERED_CAR_PLACE("2", "错时车位"),
    FIXED_CAR_PLACE("3", "内部车"),
    PROPERTY_CAR_PLACE("4", "产权车"),
    TEMPORARY_CAR_PLACE("5", "临时车"),
   ;

    private String code;

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }

    private String description;

    public static String getDescByCode(String code) {
        PlaceUsedTypeEnum[] enumArray = PlaceUsedTypeEnum.values();
        for (PlaceUsedTypeEnum e : enumArray) {
            if (e.getCode().equals(code)) {
                return e.getDescription();
            }
        }
        return "";
    }
}
