From 1ec02a02b5383a98a28de6540f176c033be05ca0 Mon Sep 17 00:00:00 2001 From: bunny <1319900154@qq.com> Date: Sun, 20 Jul 2025 13:51:19 +0800 Subject: [PATCH] =?UTF-8?q?:speech=5Fballoon:=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E5=99=A8=E7=94=9F=E6=88=90?= =?UTF-8?q?=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/vms/server/model/dto/dto.java.vm | 10 +++++----- .../vms/server/model/entity/entity.java.vm | 17 ++++++++--------- .../resources/vms/server/model/vo/vo.java.vm | 2 +- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/auth-module/module-generator-code/src/main/resources/vms/server/model/dto/dto.java.vm b/auth-module/module-generator-code/src/main/resources/vms/server/model/dto/dto.java.vm index a7b222c..a38dab8 100644 --- a/auth-module/module-generator-code/src/main/resources/vms/server/model/dto/dto.java.vm +++ b/auth-module/module-generator-code/src/main/resources/vms/server/model/dto/dto.java.vm @@ -12,12 +12,12 @@ import java.util.Date; @AllArgsConstructor @NoArgsConstructor @Builder -@Schema(name = "${classUppercaseName}DTO对象", title = "${comment}", description = "${comment}的DTO对象") +@Schema(name = "${classUppercaseName}DTO-${comment}传输对象", title = "${comment}", description = "${comment}的DTO对象") public class ${classUppercaseName}Dto { -#foreach($field in ${columnInfoList}) -@Schema(name = "${field.lowercaseName}", title = "${field.comment}") -private ${field.javaType} ${field.lowercaseName}; + #foreach($field in ${columnInfoList}) + @Schema(name = "${field.lowercaseName}", title = "${field.comment}") + private ${field.javaType} ${field.lowercaseName}; -#end + #end } \ No newline at end of file diff --git a/auth-module/module-generator-code/src/main/resources/vms/server/model/entity/entity.java.vm b/auth-module/module-generator-code/src/main/resources/vms/server/model/entity/entity.java.vm index 9766a75..6600324 100644 --- a/auth-module/module-generator-code/src/main/resources/vms/server/model/entity/entity.java.vm +++ b/auth-module/module-generator-code/src/main/resources/vms/server/model/entity/entity.java.vm @@ -1,4 +1,3 @@ - import com.auth.common.model.common.BaseEntity; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.v3.oas.annotations.media.Schema; @@ -17,15 +16,15 @@ import java.util.Date; @Setter @Accessors(chain = true) @TableName("${tableName}") -@Schema(name = "${classUppercaseName}对象", title = "${comment}", description = "${comment}的实体类对象") +@Schema(name = "${classUppercaseName}-${comment}实体类", title = "${comment}", description = "${comment}的实体类对象") public class ${classUppercaseName}Entity extends BaseEntity { -#foreach($field in ${columnInfoList}) - @Schema(name = "${field.lowercaseName}", title = "${field.comment}") - #if($field.isPrimaryKey) - @TableId(type = IdType.ASSIGN_ID) - #end - private ${field.javaType} ${field.lowercaseName}; + #foreach($field in ${columnInfoList}) + @Schema(name = "${field.lowercaseName}", title = "${field.comment}") + #if($field.isPrimaryKey) + @TableId(type = IdType.ASSIGN_ID) + #end + private ${field.javaType} ${field.lowercaseName}; -#end + #end } \ No newline at end of file diff --git a/auth-module/module-generator-code/src/main/resources/vms/server/model/vo/vo.java.vm b/auth-module/module-generator-code/src/main/resources/vms/server/model/vo/vo.java.vm index 07ebfd8..aa644ac 100644 --- a/auth-module/module-generator-code/src/main/resources/vms/server/model/vo/vo.java.vm +++ b/auth-module/module-generator-code/src/main/resources/vms/server/model/vo/vo.java.vm @@ -13,7 +13,7 @@ import java.time.LocalDateTime; @Data @AllArgsConstructor @NoArgsConstructor -@Schema(name = "${classUppercaseName}VO对象", title = "${comment}", description = "${comment}的VO对象") +@Schema(name = "${classUppercaseName}VO-${comment}返回对象", title = "${comment}", description = "${comment}的VO对象") public class ${classUppercaseName}Vo { #foreach($field in ${columnInfoList})