程序包 com.walker.web

Enum Class LoginType

java.lang.Object
java.lang.Enum<LoginType>
com.walker.web.LoginType
所有已实现的接口:
Serializable, Comparable<LoginType>, Constable

public enum LoginType extends Enum<LoginType>
登录类型定义,前端可通过多种方式登录,并同时支持多种方式同时登录,如:PC端和APP端。
  • 枚举常量详细资料

    • UserPassword

      public static final LoginType UserPassword
      用户名密码登录。
    • SmsCode

      public static final LoginType SmsCode
      短信验证码登录
    • Wechat

      public static final LoginType Wechat
    • DingTalk

      public static final LoginType DingTalk
    • MobilePassword

      public static final LoginType MobilePassword
      专门针对移动端的账号、密码登录(没有验证码)
    • ThirdParty

      public static final LoginType ThirdParty
  • 字段详细资料

  • 方法详细资料

    • values

      public static LoginType[] 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 LoginType 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 - 如果参数为空值
    • getIndex

      public String getIndex()
    • getType

      public static final LoginType getType(String index)