diff --git a/continew-plugin/continew-plugin-generator/src/main/resources/templates/backend/DetailResp.ftl b/continew-plugin/continew-plugin-generator/src/main/resources/templates/backend/DetailResp.ftl index 0b8fd3a9..bad1d260 100644 --- a/continew-plugin/continew-plugin-generator/src/main/resources/templates/backend/DetailResp.ftl +++ b/continew-plugin/continew-plugin-generator/src/main/resources/templates/backend/DetailResp.ftl @@ -8,7 +8,11 @@ import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; import com.alibaba.excel.annotation.ExcelProperty; import top.continew.admin.common.model.resp.BaseDetailResp; - +<#if imports??> + <#list imports as className> +import ${className}; + + import java.io.Serial; <#if hasTimeField> import java.time.*; diff --git a/continew-plugin/continew-plugin-generator/src/main/resources/templates/backend/Query.ftl b/continew-plugin/continew-plugin-generator/src/main/resources/templates/backend/Query.ftl index e871d2db..06a962ff 100644 --- a/continew-plugin/continew-plugin-generator/src/main/resources/templates/backend/Query.ftl +++ b/continew-plugin/continew-plugin-generator/src/main/resources/templates/backend/Query.ftl @@ -6,7 +6,11 @@ import io.swagger.v3.oas.annotations.media.Schema; import top.continew.starter.data.core.annotation.Query; import top.continew.starter.data.core.enums.QueryType; - +<#if imports??> + <#list imports as className> +import ${className}; + + import java.io.Serial; import java.io.Serializable; <#if hasTimeField> diff --git a/continew-plugin/continew-plugin-generator/src/main/resources/templates/backend/Req.ftl b/continew-plugin/continew-plugin-generator/src/main/resources/templates/backend/Req.ftl index 975057f8..91e7fbcd 100644 --- a/continew-plugin/continew-plugin-generator/src/main/resources/templates/backend/Req.ftl +++ b/continew-plugin/continew-plugin-generator/src/main/resources/templates/backend/Req.ftl @@ -9,7 +9,11 @@ import lombok.Data; import io.swagger.v3.oas.annotations.media.Schema; import org.hibernate.validator.constraints.Length; - +<#if imports??> + <#list imports as className> +import ${className}; + + import java.io.Serial; import java.io.Serializable; <#if hasTimeField> diff --git a/continew-plugin/continew-plugin-generator/src/main/resources/templates/backend/Resp.ftl b/continew-plugin/continew-plugin-generator/src/main/resources/templates/backend/Resp.ftl index e4ee152c..f7eb77fb 100644 --- a/continew-plugin/continew-plugin-generator/src/main/resources/templates/backend/Resp.ftl +++ b/continew-plugin/continew-plugin-generator/src/main/resources/templates/backend/Resp.ftl @@ -5,7 +5,11 @@ import lombok.Data; import io.swagger.v3.oas.annotations.media.Schema; import top.continew.admin.common.model.resp.BaseResp; - +<#if imports??> + <#list imports as className> +import ${className}; + + import java.io.Serial; <#if hasTimeField> import java.time.*;