修改表结构.

This commit is contained in:
lijiahang
2023-08-02 17:05:49 +08:00
parent 5bee3b98a7
commit 4322f01354
17 changed files with 26 additions and 252 deletions

View File

@@ -29,8 +29,8 @@ public class ${type}CreateRequest implements Serializable {
#foreach($field in ${table.fields})
#if("$!field.propertyName" != "id")
#if("$field.propertyType" == "String")
@Size(max = $field.metaInfo.length)
@NotBlank
@Size(max = $field.metaInfo.length)
#else
@NotNull
#end

View File

@@ -28,8 +28,8 @@ public class ${type}UpdateRequest implements Serializable {
#foreach($field in ${table.fields})
#if("$field.propertyType" == "String")
@Size(max = $field.metaInfo.length)
@NotBlank
@Size(max = $field.metaInfo.length)
#else
@NotNull
#end