respVO.vm 923 B

123456789101112131415161718192021222324
  1. package ${basePackage}.module.${table.moduleName}.controller.${sceneEnum.basePackage}.${table.businessName}.vo;
  2. import lombok.*;
  3. #foreach ($column in $columns)
  4. #if (${column.javaType} == "LocalDateTime")
  5. import java.time.LocalDateTime;
  6. #end
  7. #end
  8. import io.swagger.annotations.*;
  9. @ApiModel("${sceneEnum.name} - ${table.classComment} Response VO")
  10. @Data
  11. @EqualsAndHashCode(callSuper = true)
  12. @ToString(callSuper = true)
  13. public class ${sceneEnum.prefixClass}${table.className}RespVO extends ${sceneEnum.prefixClass}${table.className}BaseVO {
  14. #foreach ($column in $columns)
  15. #if (${column.listOperationResult} && (!${column.createOperation} || !${column.updateOperation}))##不是通用字段
  16. @ApiModelProperty(value = "${column.columnComment}"#if (!${column.nullable}), required = true#end#if ("$!column.example" != ""), example = "${column.example}"#end)
  17. private ${column.javaType} ${column.javaField};
  18. #end
  19. #end
  20. }