mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-20 19:00:53 +08:00
53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
package ${packageName}.${subPackageName};
|
|
|
|
import lombok.Data;
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
|
|
import cn.idev.excel.annotation.ExcelProperty;
|
|
|
|
import top.continew.admin.common.base.model.resp.BaseDetailResp;
|
|
import top.continew.starter.excel.converter.ExcelBaseEnumConverter;
|
|
<#if imports??>
|
|
<#list imports as className>
|
|
import ${className};
|
|
</#list>
|
|
</#if>
|
|
import java.io.Serial;
|
|
<#if hasTimeField>
|
|
import java.time.*;
|
|
</#if>
|
|
<#if hasBigDecimalField>
|
|
import java.math.BigDecimal;
|
|
</#if>
|
|
|
|
/**
|
|
* ${businessName}详情信息
|
|
*
|
|
* @author ${author}
|
|
* @since ${datetime}
|
|
*/
|
|
@Data
|
|
@ExcelIgnoreUnannotated
|
|
@Schema(description = "${businessName}详情信息")
|
|
public class ${className} extends BaseDetailResp {
|
|
|
|
@Serial
|
|
private static final long serialVersionUID = 1L;
|
|
<#if fieldConfigs??>
|
|
<#list fieldConfigs as fieldConfig>
|
|
|
|
/**
|
|
* ${fieldConfig.comment}
|
|
*/
|
|
@Schema(description = "${fieldConfig.comment}")
|
|
<#if fieldConfig.fieldType?ends_with("Enum")>
|
|
@ExcelProperty(value = "${fieldConfig.comment}", converter = ExcelBaseEnumConverter.class)
|
|
<#else>
|
|
@ExcelProperty(value = "${fieldConfig.comment}")
|
|
</#if>
|
|
private ${fieldConfig.fieldType} ${fieldConfig.fieldName};
|
|
</#list>
|
|
</#if>
|
|
} |