微服务版后端初始化
This commit is contained in:
@ -0,0 +1,54 @@
|
||||
package ${package};
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import java.io.Serializable;
|
||||
|
||||
import java.time.LocalTime;
|
||||
import java.time.LocalDateTime;
|
||||
import java.math.BigDecimal;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import java.util.List;
|
||||
<#--子表遍历-->
|
||||
<#if childTables?? >
|
||||
<#list childTables as childTable>
|
||||
import com.xjrsoft.${outputArea}.entity.${childTable.tableName?cap_first};
|
||||
</#list>
|
||||
</#if>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @title: ${tableComment}
|
||||
* @Author ${author}
|
||||
* @Date: ${date}
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class Update${entityClass}Dto implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
<#--属性遍历-->
|
||||
<#list fields as field>
|
||||
/**
|
||||
* ${(field.fieldComment)!''}
|
||||
*/
|
||||
@Schema(name = "${(field.fieldComment)!''}")
|
||||
<#if field.fieldType == "LocalDateTime" && field.pattern??>
|
||||
@JsonFormat(pattern = "${field.pattern}")
|
||||
</#if>
|
||||
private ${field.fieldType} ${field.fieldName};
|
||||
</#list>
|
||||
|
||||
<#--子表遍历-->
|
||||
<#if childTables?? >
|
||||
<#list childTables as childTable>
|
||||
/**
|
||||
* ${childTable.tableName}
|
||||
*/
|
||||
@Schema(name = "${childTable.tableName}子表")
|
||||
private List<Update${childTable.tableName?cap_first}Dto> ${childTable.tableName}List;
|
||||
</#list>
|
||||
</#if>
|
||||
}
|
||||
Reference in New Issue
Block a user