From 22f6b101b0189eeca2a470afac3b438923fa84cc Mon Sep 17 00:00:00 2001 From: Carina Date: Fri, 28 May 2021 21:46:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=99=A8=E6=A8=A1=E6=9D=BF=20=E7=AE=A1=E7=90=86=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=20(80%)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/entity/GenTemplateDetail.java | 3 +++ .../template/wrapper/GenTemplateDetailModel.java | 16 +++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/opsli-modulars/opsli-modulars-generator/src/main/java/org/opsli/modulars/generator/template/entity/GenTemplateDetail.java b/opsli-modulars/opsli-modulars-generator/src/main/java/org/opsli/modulars/generator/template/entity/GenTemplateDetail.java index 26cdf64..53354db 100644 --- a/opsli-modulars/opsli-modulars-generator/src/main/java/org/opsli/modulars/generator/template/entity/GenTemplateDetail.java +++ b/opsli-modulars/opsli-modulars-generator/src/main/java/org/opsli/modulars/generator/template/entity/GenTemplateDetail.java @@ -43,6 +43,9 @@ public class GenTemplateDetail extends BaseEntity { /** 父级ID */ private String parentId; + /** 类型 0 后端 1 前端 */ + private String type; + /** 路径 */ private String path; diff --git a/opsli-modulars/opsli-modulars-generator/src/main/java/org/opsli/modulars/generator/template/wrapper/GenTemplateDetailModel.java b/opsli-modulars/opsli-modulars-generator/src/main/java/org/opsli/modulars/generator/template/wrapper/GenTemplateDetailModel.java index 8ed5a91..5d053b7 100644 --- a/opsli-modulars/opsli-modulars-generator/src/main/java/org/opsli/modulars/generator/template/wrapper/GenTemplateDetailModel.java +++ b/opsli-modulars/opsli-modulars-generator/src/main/java/org/opsli/modulars/generator/template/wrapper/GenTemplateDetailModel.java @@ -56,9 +56,19 @@ public class GenTemplateDetailModel extends ApiWrapper { @ValidatorLenMax(19) private String parentId; + /** 类型 0 后端 1 前端 */ + @ApiModelProperty(value = "类型") + @ExcelProperty(value = "类型", order = 2) + @ExcelInfo + @Validator({ + ValidatorType.IS_NOT_NULL + }) + @ValidatorLenMax(1) + private String type; + /** 路径 */ @ApiModelProperty(value = "路径") - @ExcelProperty(value = "路径", order = 2) + @ExcelProperty(value = "路径", order = 3) @ExcelInfo @Validator({ ValidatorType.IS_NOT_NULL @@ -68,7 +78,7 @@ public class GenTemplateDetailModel extends ApiWrapper { /** 文件名 */ @ApiModelProperty(value = "文件名") - @ExcelProperty(value = "文件名", order = 3) + @ExcelProperty(value = "文件名", order = 4) @ExcelInfo @Validator({ ValidatorType.IS_NOT_NULL @@ -78,7 +88,7 @@ public class GenTemplateDetailModel extends ApiWrapper { /** 文件内容 */ @ApiModelProperty(value = "文件内容") - @ExcelProperty(value = "文件内容", order = 4) + @ExcelProperty(value = "文件内容", order = 5) @ExcelInfo @Validator({ ValidatorType.IS_NOT_NULL