review: 重构代码.

This commit is contained in:
lijiahang
2023-11-09 16:10:58 +08:00
parent 0ee6ebe207
commit 6fc6c61d48
22 changed files with 366 additions and 50 deletions

View File

@@ -20,6 +20,8 @@ import java.util.Date;
@Data
public class BaseDO implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "创建时间")
@TableField(fill = FieldFill.INSERT)
private Date createTime;

View File

@@ -27,6 +27,8 @@ import java.math.*;
@Schema(name = "${type}Export", description = "$!{table.comment}导出对象")
public class ${type}Export implements Serializable {
private static final long serialVersionUID = 1L;
public static final String TITLE = "$!{table.comment}导出";
#foreach($field in ${table.fields})

View File

@@ -28,6 +28,8 @@ import java.math.*;
@Schema(name = "${type}CreateRequest", description = "$!{table.comment} 创建请求对象")
public class ${type}CreateRequest implements Serializable {
private static final long serialVersionUID = 1L;
#foreach($field in ${table.fields})
#if("$!field.propertyName" != "id")
#if("$field.propertyType" == "String")

View File

@@ -27,6 +27,8 @@ import java.math.*;
@AllArgsConstructor
@Schema(name = "${type}UpdateRequest", description = "$!{table.comment} 更新请求对象")
public class ${type}UpdateRequest implements Serializable {
private static final long serialVersionUID = 1L;
#foreach($field in ${table.fields})
#if("$field.propertyType" == "String")

View File

@@ -27,6 +27,8 @@ import java.math.*;
@Schema(name = "${type}CreateDTO", description = "$!{table.comment} 创建请求业务对象")
public class ${type}CreateDTO implements Serializable {
private static final long serialVersionUID = 1L;
#foreach($field in ${table.fields})
#if("$!field.propertyName" != "id")
#if("$field.propertyType" == "String")

View File

@@ -24,6 +24,8 @@ import java.math.*;
@AllArgsConstructor
@Schema(name = "${type}QueryDTO", description = "$!{table.comment} 查询请求业务对象")
public class ${type}QueryDTO implements Serializable {
private static final long serialVersionUID = 1L;
#foreach($field in ${table.fields})
#if("$field.propertyType" == "String" && "$field.metaInfo.jdbcType" != "LONGVARCHAR")

View File

@@ -26,6 +26,8 @@ import java.math.*;
@AllArgsConstructor
@Schema(name = "${type}UpdateDTO", description = "$!{table.comment} 更新请求业务对象")
public class ${type}UpdateDTO implements Serializable {
private static final long serialVersionUID = 1L;
#foreach($field in ${table.fields})
#if("$field.propertyType" == "String")