All Downloads are FREE. Search and download functionalities are using the official Maven repository.

generate.vo.ftl Maven / Gradle / Ivy

package ${configuration.voPackage};
import lombok.Getter;
import lombok.Setter;
<#if hasSwagger>
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;

<#if baseEntityPkg>
import ${baseEntityPkg};

<#if hasExcel>
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.enums.BooleanEnum;

<#list voFieldTypes as importclazz>
import ${importclazz};


/**
* @author ${configuration.author}
* @date ${configuration.dateTime}
* @description ${tableComment}
*/
@Setter
@Getter
<#if hasExcel>
@ExcelIgnoreUnannotated
@ContentRowHeight(60)
@ContentFontStyle(italic = BooleanEnum.FALSE,fontName = "Arial")
@HeadRowHeight(40)
@ContentStyle(locked=BooleanEnum.TRUE,wrapped=BooleanEnum.TRUE)

<#if hasSwagger>
@ApiModel("${tableComment}")

public class ${javaName}Vo <#if baseEntityName?? >extends ${baseEntityName}{
<#list tableColumns as column>
    <#if column.hasNeedSerialize==1>
    <#if hasExcel>
    @ExcelProperty(value = "${column.columnComment}")
    
    <#if hasSwagger>
    @ApiModelProperty(value = "${column.columnComment}")
    <#else>
    /**${column.columnComment}**/
    
    private ${column.fieldType} ${column.fieldName};
    


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy