dto.ftl 894 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package ${code.packageName}.model.dto;
  2. <#list code.propertys as property>
  3. <#if property.type = 'Date'>
  4. import java.util.Date;
  5. <#break>
  6. </#if>
  7. </#list>
  8. import lombok.Data;
  9. /**
  10. * @author ${code.author}
  11. * @date ${.now?string('yyyy-MM-dd')}
  12. */
  13. @Data
  14. public class ${code.className}DTO {
  15. private Long id;
  16. <#list code.propertys as property>
  17. <#if code.parentName = "RelationBaseBean">
  18. <#if property.name = 'create_user_id' || property.name= 'create_user_name' || property.name= 'create_time' || property.name= 'update_user_id' || property.name= 'update_user_name' || property.name= 'update_time' || property.name= 'delete_flag' || property.name= 'version'>
  19. <#continue>
  20. </#if>
  21. </#if>
  22. /**
  23. *${property.label}
  24. */
  25. <#if property.type = 'Text'>
  26. private String ${property.name};
  27. <#else>
  28. private ${property.type} ${property.name};
  29. </#if>
  30. </#list>
  31. }