|
@@ -0,0 +1,38 @@
|
|
|
+package com.xjrsoft.module.generator.entity;
|
|
|
+
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import lombok.Data;
|
|
|
+import org.hibernate.validator.constraints.Length;
|
|
|
+
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
+
|
|
|
+@Data
|
|
|
+public class ImportConfig {
|
|
|
+ /**
|
|
|
+ * 字段
|
|
|
+ */
|
|
|
+ @NotNull(message = "字段不能为空!")
|
|
|
+ @Length(max = 30, message = "字段长度不能超过30!")
|
|
|
+ private String fieldName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 字段名称
|
|
|
+ */
|
|
|
+ @NotNull(message = "字段名称不能为空!")
|
|
|
+ @Length(max = 20, message = "字段名称不能超过20!")
|
|
|
+ private String label;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 宽度
|
|
|
+ */
|
|
|
+ private Integer width;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 是否必填
|
|
|
+ */
|
|
|
+ @ApiModelProperty("是否必填")
|
|
|
+ private Boolean required;
|
|
|
+
|
|
|
+ @ApiModelProperty("排序码")
|
|
|
+ private Integer sortCode;
|
|
|
+}
|