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

mybatis-plus-single-v3.dto.ftl Maven / Gradle / Ivy

There is a newer version: 1.0.20
Show newest version
<#if isWithPackage?exists && isWithPackage==true>package ${packageName}.dto;

<#if isAutoImport?exists && isAutoImport==true>
<#if isLombok?exists && isLombok==true>import lombok.Data;
import java.util.Date;
import java.util.List;
import java.io.Serializable;
import entity.io.github.wujun728.common.BaseEntity;
<#if isSwagger?exists && isSwagger==true>
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @description ${classInfo.classComment}
 * @author ${authorName}
 * @date ${.now?string('yyyy-MM-dd')}
 */
<#if isLombok?exists && isLombok==true>@Data<#if isSwagger?exists && isSwagger==true>
@ApiModel("${classInfo.classComment}")
public class ${classInfo.className}Dto  extends BaseEntity  implements Serializable {

    private static final long serialVersionUID = 1L;

<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0>
<#list classInfo.fieldList as fieldItem >
    <#if isComment?exists && isComment==true>/**
    * ${fieldItem.fieldComment}
    */<#if isSwagger?exists && isSwagger==true>
    @ApiModelProperty("${fieldItem.fieldComment}") 
    private ${fieldItem.fieldClass} ${fieldItem.fieldName};

<#if isLombok?exists && isLombok==false>
    public ${fieldItem.fieldClass} get${fieldItem.fieldName?cap_first}() {
        return ${fieldItem.fieldName};
    }

    public void set${fieldItem.fieldName?cap_first}(${fieldItem.fieldClass} ${fieldItem.fieldName}) {
        this.${fieldItem.fieldName} = ${fieldItem.fieldName};
    }



    public ${classInfo.className}Dto() {}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy