DataInterface.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. package com.usky.data.domain;
  2. import java.time.LocalDateTime;
  3. import java.io.Serializable;
  4. import com.baomidou.mybatisplus.annotation.IdType;
  5. import com.baomidou.mybatisplus.annotation.TableField;
  6. import com.baomidou.mybatisplus.annotation.TableId;
  7. import com.baomidou.mybatisplus.annotation.TableName;
  8. import lombok.Data;
  9. import lombok.EqualsAndHashCode;
  10. import javax.validation.constraints.NotBlank;
  11. import javax.validation.constraints.NotNull;
  12. /**
  13. * <p>
  14. * 数据中心_数据接口表
  15. * </p>
  16. *
  17. * @author fyc
  18. * @since 2026-01-24
  19. */
  20. @Data
  21. @EqualsAndHashCode(callSuper = false)
  22. public class DataInterface implements Serializable {
  23. private static final long serialVersionUID = 1L;
  24. /**
  25. * 主键ID
  26. */
  27. @TableId(value = "id", type = IdType.AUTO)
  28. private Long id;
  29. /**
  30. * 接口名称
  31. */
  32. @NotBlank(message = "接口名称不能为空")
  33. private String fullName;
  34. /**
  35. * 接口编码
  36. */
  37. @NotBlank(message = "接口编码不能为空")
  38. private String enCode;
  39. /**
  40. * 接口分类
  41. */
  42. private String category;
  43. /**
  44. * 接口类型(1:静态数据, 2:SQL操作, 3:API操作)
  45. */
  46. @NotNull(message = "接口类型不能为空")
  47. private Integer type;
  48. /**
  49. * 操作类型()
  50. */
  51. private Integer action;
  52. /**
  53. * 分页(0-禁用,1-启用)
  54. */
  55. private Integer hasPage;
  56. /**
  57. * 后置接口(0-否 1-是)
  58. */
  59. private Integer isPostposition;
  60. /**
  61. * 字段JSON
  62. */
  63. private String fieldJson;
  64. /**
  65. * 数据配置JSON
  66. */
  67. @TableField("config_json")
  68. @NotBlank(message = "数据配置JSON不能为空")
  69. private String dataConfigJson;
  70. /**
  71. * 数据统计json
  72. */
  73. @TableField("count_json")
  74. @NotBlank(message = "数据统计json不能为空")
  75. private String dataCountJson;
  76. /**
  77. * 数据回显json
  78. */
  79. @TableField("echo_json")
  80. @NotBlank(message = "数据回显json不能为空")
  81. private String dataEchoJson;
  82. /**
  83. * 数据处理json
  84. */
  85. @TableField("js_json")
  86. @NotBlank(message = "数据处理json不能为空")
  87. private String dataJsJson;
  88. /**
  89. * 参数配置JSON
  90. */
  91. private String parameterJson;
  92. /**
  93. * 异常验证JSON
  94. */
  95. private String exceptionJson;
  96. /**
  97. * 描述或说明
  98. */
  99. private String description;
  100. /**
  101. * 启用状态(0-禁用,1-启用)
  102. */
  103. private Integer enabledMark;
  104. /**
  105. * 排序
  106. */
  107. private Long sortCode;
  108. /**
  109. * 创建者
  110. */
  111. @NotBlank(message = "创建人不能为空")
  112. private String createBy;
  113. /**
  114. * 创建时间
  115. */
  116. @NotNull(message = "创建时间不能为空")
  117. private LocalDateTime createTime;
  118. /**
  119. * 更新者
  120. */
  121. @NotBlank(message = "更新人不能为空")
  122. private String updateBy;
  123. /**
  124. * 更新时间
  125. */
  126. @NotNull(message = "更新时间不能为空")
  127. private LocalDateTime updateTime;
  128. /**
  129. * 删除时间
  130. */
  131. @NotNull(message = "删除时间不能为空")
  132. private LocalDateTime deleteTime;
  133. /**
  134. * 删除用户
  135. */
  136. @NotBlank(message = "删除人不能为空")
  137. private String deleteBy;
  138. /**
  139. * 是否删除 0:未删除,1:已删除
  140. */
  141. private Integer isDelete;
  142. /**
  143. * 租户ID
  144. */
  145. private Integer tenantId;
  146. }