package com.bonus.canteen.core.menu.enums;

import java.util.Objects;

public enum MgrRoleTypeV2Enum {
   ROLE_ADMIN(1, "全数据类"),
   ROLE_ORG(2, "组织类"),
   ROLE_MERCHANT(3, "商户/仓库类");

   private final Integer key;
   private final String value;

   public static MgrRoleTypeV2Enum getEnumByKey(Integer key) {
      MgrRoleTypeV2Enum[] var1 = values();
      int var2 = var1.length;

      for(int var3 = 0; var3 < var2; ++var3) {
         MgrRoleTypeV2Enum roleType = var1[var3];
         if (Objects.equals(roleType.key, key)) {
            return roleType;
         }
      }

      return null;
   }

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

   public String getValue() {
      return this.value;
   }

   private MgrRoleTypeV2Enum(final Integer key, final String value) {
      this.key = key;
      this.value = value;
   }

   // $FF: synthetic method
   private static MgrRoleTypeV2Enum[] $values() {
      return new MgrRoleTypeV2Enum[]{ROLE_ADMIN, ROLE_ORG, ROLE_MERCHANT};
   }
}
