page.list.dto.java.ftl 1000 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package ${package};
  2. ${isPage?string("import com.xjrsoft.common.page.PageInput;","import com.xjrsoft.common.page.ListInput;")}
  3. import io.swagger.annotations.ApiModelProperty;
  4. import lombok.Data;
  5. import lombok.EqualsAndHashCode;
  6. import org.springframework.format.annotation.DateTimeFormat;
  7. import java.time.LocalTime;
  8. import java.time.LocalDateTime;
  9. import java.math.BigDecimal;
  10. import java.util.Date;
  11. /**
  12. * @title: ${tableComment}
  13. * @Author ${author}
  14. * @Date: ${date}
  15. * @Version 1.0
  16. */
  17. @Data
  18. @EqualsAndHashCode(callSuper = false)
  19. public class ${entityClass}${isPage?string("Page","List")}Dto ${isPage?string("extends PageInput","extends ListInput")} {
  20. <#--属性遍历-->
  21. <#list fields as field>
  22. /**
  23. * ${field.fieldComment}
  24. */
  25. @ApiModelProperty("${field.fieldComment}")
  26. <#if field.fieldType == "LocalDateTime" >
  27. @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  28. </#if>
  29. private ${field.fieldType} ${field.fieldName};
  30. </#list>
  31. }