TableField.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. package com.izouma.awesomeAdmin.dto.gen;
  2. import com.fasterxml.jackson.annotation.JsonAutoDetect;
  3. import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
  4. import com.fasterxml.jackson.annotation.JsonInclude;
  5. import lombok.Data;
  6. @Data
  7. @JsonAutoDetect
  8. @JsonInclude(JsonInclude.Include.NON_NULL)
  9. @JsonIgnoreProperties(ignoreUnknown = true)
  10. public class TableField {
  11. /**
  12. * id
  13. */
  14. private Integer id;
  15. /**
  16. * 字段名
  17. */
  18. private String name;
  19. /**
  20. * 驼峰式名字
  21. */
  22. private String modelName;
  23. /**
  24. * 备注
  25. */
  26. private String remark;
  27. /**
  28. * 数据类型(数据库)
  29. */
  30. private String jdbcType;
  31. /**
  32. * java类型
  33. */
  34. private String javaType;
  35. /**
  36. * 长度
  37. */
  38. private Integer length;
  39. /**
  40. * 小数长度
  41. */
  42. private Integer decimalPlaces;
  43. /**
  44. * 默认值
  45. */
  46. private String defaultValue;
  47. /**
  48. * 非空
  49. */
  50. private Boolean notNull;
  51. /**
  52. * 主键
  53. */
  54. private Boolean primaryKey;
  55. /**
  56. * 自增
  57. */
  58. private Boolean autoIncrease;
  59. /**
  60. * 在列表中显示
  61. */
  62. private Boolean showInList;
  63. /**
  64. * 在表单中显示
  65. */
  66. private Boolean showInForm;
  67. /**
  68. * 可以排序
  69. */
  70. private Boolean sortable;
  71. /**
  72. * 表单类型
  73. */
  74. private String formType;
  75. /**
  76. * 搜索方式
  77. */
  78. private String searchMethod;
  79. /**
  80. * 表单必填
  81. */
  82. private Boolean required;
  83. /**
  84. * 表单验证
  85. */
  86. private Boolean validate;
  87. /**
  88. * 最短长度
  89. */
  90. private Integer minLength;
  91. /**
  92. * 最大长度
  93. */
  94. private Integer maxLength;
  95. /**
  96. * 最小值
  97. */
  98. private String min;
  99. /**
  100. * 最大值
  101. */
  102. private String max;
  103. /**
  104. * 验证类型
  105. */
  106. private String validatorType;
  107. /**
  108. * xml里jdbcType
  109. */
  110. private String sqlType;
  111. /**
  112. * 下拉框类型 1 枚举, 2 接口, 3 读表
  113. */
  114. private String apiFlag;
  115. /**
  116. * 接口方法/表名
  117. */
  118. private String optionsMethod;
  119. /**
  120. * 选项值,在枚举是用该值解析
  121. */
  122. private String optionsValue;
  123. /**
  124. * 显示值
  125. */
  126. private String optionsLabel;
  127. }