38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
|
|
package ${basePackage}.module.${table.moduleName}.controller.${sceneEnum.basePackage}.${table.businessName}.vo;
|
|||
|
|
|
|||
|
|
import lombok.*;
|
|||
|
|
import java.util.*;
|
|||
|
|
#foreach ($column in $columns)
|
|||
|
|
#if (${column.javaType} == "BigDecimal")
|
|||
|
|
import java.math.BigDecimal;
|
|||
|
|
#break
|
|||
|
|
#end
|
|||
|
|
#end
|
|||
|
|
import io.swagger.annotations.*;
|
|||
|
|
import javax.validation.constraints.*;
|
|||
|
|
## 处理 Date 字段的引入
|
|||
|
|
#foreach ($column in $columns)
|
|||
|
|
#if (${column.createOperation} && ${column.updateOperation} && ${column.listOperationResult}
|
|||
|
|
&& ${column.javaType} == "Date")## 时间类型
|
|||
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|||
|
|
|
|||
|
|
import static ${DateUtilsClassName}.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
|||
|
|
#break
|
|||
|
|
#end
|
|||
|
|
#end
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* ${table.classComment} Base VO,提供给添加、修改、详细的子 VO 使用
|
|||
|
|
* 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成
|
|||
|
|
*/
|
|||
|
|
@Data
|
|||
|
|
public class ${sceneEnum.prefixClass}${table.className}BaseVO {
|
|||
|
|
|
|||
|
|
#foreach ($column in $columns)
|
|||
|
|
#if (${column.createOperation} && ${column.updateOperation} && ${column.listOperationResult})##通用操作
|
|||
|
|
#parse("codegen/java/controller/vo/_column.vm")
|
|||
|
|
|
|||
|
|
#end
|
|||
|
|
#end
|
|||
|
|
}
|