package com.bonus.canteen.core.customer.constants;

public enum PhotoTypeEnum {
   PHOTO(1, "照片"),
   FINGERPRINT(2, "指纹"),
   PALM_PRINTS(3, "掌纹"),
   PALMAR_VEIN(4, "掌静脉"),
   FINGER_VEIN(5, "指静脉"),
   IRIS(6, "虹膜");

   private final Integer key;
   private final String desc;

   private PhotoTypeEnum(Integer key, String desc) {
      this.key = key;
      this.desc = desc;
   }

   public static String getDesc(Integer key) {
      PhotoTypeEnum[] var1 = values();
      int var2 = var1.length;

      for(int var3 = 0; var3 < var2; ++var3) {
         PhotoTypeEnum temp = var1[var3];
         if (temp.getKey().equals(key)) {
            return temp.getDesc();
         }
      }

      return "";
   }

   public Integer getKey() {
      return this.key;
   }

   public String getDesc() {
      return this.desc;
   }

   // $FF: synthetic method
   private static PhotoTypeEnum[] $values() {
      return new PhotoTypeEnum[]{PHOTO, FINGERPRINT, PALM_PRINTS, PALMAR_VEIN, FINGER_VEIN, IRIS};
   }
}
