DTO.java.ftl 701 B

123456789101112131415161718192021222324252627282930
  1. package ${package}.modules.${moduleName}.dto<#if subModuleName??>.${subModuleName}</#if>;
  2. import io.swagger.annotations.ApiModel;
  3. import io.swagger.annotations.ApiModelProperty;
  4. import lombok.Data;
  5. import java.io.Serializable;
  6. <#list imports as i>
  7. import ${i!};
  8. </#list>
  9. /**
  10. * ${tableComment}
  11. *
  12. * @author ${author} ${email}
  13. * @since ${version} ${date}
  14. */
  15. @Data
  16. @ApiModel(value = "${tableComment}")
  17. public class ${ClassName}DTO implements Serializable {
  18. private static final long serialVersionUID = 1L;
  19. <#list columnList as column>
  20. <#if column.comment!?length gt 0>
  21. @ApiModelProperty(value = "${column.comment}")
  22. </#if>
  23. private ${column.attrType} ${column.attrName};
  24. </#list>
  25. }