28 lines
1017 B
Plaintext
28 lines
1017 B
Plaintext
|
|
package ${basePackage}.${table.moduleName}.controller.${table.businessName}.vo;
|
||
|
|
|
||
|
|
import lombok.*;
|
||
|
|
import java.util.*;
|
||
|
|
import io.swagger.annotations.*;
|
||
|
|
import javax.validation.constraints.*;
|
||
|
|
|
||
|
|
@ApiModel("${table.classComment}创建 Request VO")
|
||
|
|
@Data
|
||
|
|
@EqualsAndHashCode(callSuper = true)
|
||
|
|
@ToString(callSuper = true)
|
||
|
|
public class ${table.className}CreateReqVO extends ${table.className}BaseVO {
|
||
|
|
|
||
|
|
#foreach ($column in $columns)
|
||
|
|
#if (${column.createOperation} && (!${column.updateOperation} || !${column.listOperationResult}))##不是通用字段
|
||
|
|
@ApiModelProperty(value = "${column.columnComment}"#if (!${column.nullable}), required = true#end#if ("$!column.example" != ""), example = "${column.example}"#end)
|
||
|
|
#if (!${column.nullable})#if (${field.fieldType} == 'String')## 判断 @NotEmpty 和 @NotNull 注解
|
||
|
|
@NotEmpty(message = "${column.columnComment}不能为空")
|
||
|
|
#else
|
||
|
|
@NotNull(message = "${column.columnComment}不能为空")
|
||
|
|
#end
|
||
|
|
#end
|
||
|
|
private ${column.javaType} ${column.javaField};
|
||
|
|
|
||
|
|
#end
|
||
|
|
#end
|
||
|
|
}
|