mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-09 20:57:21 +08:00
refactor(generator): 优化代码生成模板中的枚举类导入语句
This commit is contained in:
@@ -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};
|
||||
</#list>
|
||||
</#if>
|
||||
import java.io.Serial;
|
||||
<#if hasTimeField>
|
||||
import java.time.*;
|
||||
|
@@ -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};
|
||||
</#list>
|
||||
</#if>
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
<#if hasTimeField>
|
||||
|
@@ -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};
|
||||
</#list>
|
||||
</#if>
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
<#if hasTimeField>
|
||||
|
@@ -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};
|
||||
</#list>
|
||||
</#if>
|
||||
import java.io.Serial;
|
||||
<#if hasTimeField>
|
||||
import java.time.*;
|
||||
|
Reference in New Issue
Block a user