Enum Class AccountType

java.lang.Object
java.lang.Enum<AccountType>
io.github.seenings.coin.enumeration.AccountType
All Implemented Interfaces:
Serializable, Comparable<AccountType>, Constable

public enum AccountType extends Enum<AccountType>
AccountType,预留99种系统账户
  • Enum Constant Details

    • SYS_RECHARGE

      public static final AccountType SYS_RECHARGE
      1. 系统充值账户,虚拟币来源 2. 系统活动奖励账户,虚拟币来源 3. 系统临时过期账户,接收过期 4. 系统使用账户,接收使用
    • SYS_REWARD

      public static final AccountType SYS_REWARD
    • SYS_EXPIRE

      public static final AccountType SYS_EXPIRE
    • SYS_USE

      public static final AccountType SYS_USE
    • USER_FOREVER

      public static final AccountType USER_FOREVER
      100. 永久账户,充值+推荐进永久 101. 临时账户,其他进临时 102. 用户冻结账户
    • USER_TEMPORARY

      public static final AccountType USER_TEMPORARY
    • USER_FREEZE

      public static final AccountType USER_FREEZE
    • COIN_BASIC

      public static final AccountType COIN_BASIC
      玫瑰币基础账户 现金基础账户 系统佣金账户 系统分红账户 用户
    • CASH_BASIC

      public static final AccountType CASH_BASIC
    • SYS_COMMISSION

      public static final AccountType SYS_COMMISSION
    • SYS_DIVIDEND

      public static final AccountType SYS_DIVIDEND
    • USER

      public static final AccountType USER
  • Method Details

    • values

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

      public static AccountType 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.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • indexToEnum

      public static AccountType indexToEnum(Integer index)
      根据索引获取枚举
      Parameters:
      index - 索引
      Returns:
      枚举