package com.bonus.canteen.core.common.export.constant;

public enum ExportFileStateEnum {
   WAITING(1, "等待中"),
   CREATING(2, "创建中"),
   FINISHED(3, "导出完毕"),
   STOPPING(4, "停止中"),
   EXPIRED(5, "已过期"),
   CANCELED(6, "已取消");

   private final Integer key;
   private final String desc;

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

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

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

      return "";
   }

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

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

   // $FF: synthetic method
   private static ExportFileStateEnum[] $values() {
      return new ExportFileStateEnum[]{WAITING, CREATING, FINISHED, STOPPING, EXPIRED, CANCELED};
   }
}
