Enum Class SysLoginType

java.lang.Object
java.lang.Enum<SysLoginType>
com.hengyi.xbaseweb.system.enums.SysLoginType
所有已实现的接口:
com.baomidou.mybatisplus.annotation.IEnum<Integer>, Serializable, Comparable<SysLoginType>, Constable

public enum SysLoginType extends Enum<SysLoginType> implements com.baomidou.mybatisplus.annotation.IEnum<Integer>
系统登录方式枚举
  • 枚举常量详细资料

    • ACCOUNT

      public static final SysLoginType ACCOUNT
      账号密码登录
    • MOBILE

      public static final SysLoginType MOBILE
      手机号登录
    • EMAIL

      public static final SysLoginType EMAIL
      邮箱登录
    • WECHAT

      public static final SysLoginType WECHAT
      微信登录
    • SCAN

      public static final SysLoginType SCAN
      扫码登录
    • OTHER

      public static final SysLoginType OTHER
      其他登录方式
  • 方法详细资料

    • values

      public static SysLoginType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SysLoginType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • getCode

      public int getCode()
    • getDescription

      public String getDescription()
    • getByCode

      public static SysLoginType getByCode(int code)
      根据code获取枚举实例
      参数:
      code - 登录方式编码
      返回:
      对应的枚举实例,找不到时返回null
    • getByDescription

      public static SysLoginType getByDescription(String description)
      根据description获取枚举实例
      参数:
      description - 登录方式描述
      返回:
      对应的枚举实例,找不到时返回null
    • getValue

      public Integer getValue()
      指定者:
      getValue 在接口中 com.baomidou.mybatisplus.annotation.IEnum<Integer>