Enum Class TypeEnum

java.lang.Object
java.lang.Enum<TypeEnum>
cn.isliu.core.enums.TypeEnum
所有已实现的接口:
Serializable, Comparable<TypeEnum>, java.lang.constant.Constable

public enum TypeEnum extends Enum<TypeEnum>
字段类型枚举 定义飞书表格支持的字段类型,用于在实体类注解中指定字段的数据类型
  • 枚举常量详细资料

    • SINGLE_SELECT

      public static final TypeEnum SINGLE_SELECT
      单选类型
    • MULTI_SELECT

      public static final TypeEnum MULTI_SELECT
      多选类型
    • TEXT

      public static final TypeEnum TEXT
      文本类型
    • NUMBER

      public static final TypeEnum NUMBER
      数字类型
    • DATE

      public static final TypeEnum DATE
      日期类型
    • TEXT_FILE

      public static final TypeEnum TEXT_FILE
      文本文件类型
    • MULTI_TEXT

      public static final TypeEnum MULTI_TEXT
      多个文本(逗号分割)类型
    • TEXT_URL

      public static final TypeEnum TEXT_URL
      文本链接类型
  • 方法详细资料

    • values

      public static TypeEnum[] 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 TypeEnum 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 String getCode()
      获取类型编码
      返回:
      类型编码字符串
    • getDesc

      public String getDesc()
      获取类型描述
      返回:
      类型描述字符串
    • getByCode

      public static TypeEnum getByCode(String code)
      根据编码获取枚举值
      参数:
      code - 类型编码
      返回:
      对应的枚举值,未找到返回null