package com.bonus.canteen.core.order.common.constants;

public enum ApplyTypeEnum {
   REFUND(1, "退单"),
   CORRECT(2, "纠错");

   private final Integer key;
   private final String desc;

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

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

      for(int var3 = 0; var3 < var2; ++var3) {
         ApplyTypeEnum 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 ApplyTypeEnum[] $values() {
      return new ApplyTypeEnum[]{REFUND, CORRECT};
   }
}
