【api】更新字段名称

pull/3/head
fengshuonan 2021-01-16 18:14:53 +08:00
parent e8bd583068
commit 61e8e5d104
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ public class FieldMetadata {
*
* key = add, value = []
*/
private Map<String, Set<String>> groupAnnotations;
private Map<String, Set<String>> groupValidationMessage;
/**
*

View File

@ -86,7 +86,7 @@ public class ClassReflectUtil {
}
}
// 设置分组注解
fieldDescription.setGroupAnnotations(groupAnnotations);
fieldDescription.setGroupValidationMessage(groupAnnotations);
// 填充字段的中文名称
ChineseDescription chineseDescription = declaredField.getAnnotation(ChineseDescription.class);

View File

@ -148,7 +148,7 @@ public class ResourceFactory {
}
for (FieldMetadata fieldMetadata : fieldMetadataSet) {
StringBuilder finalValidateMessages = new StringBuilder();
Map<String, Set<String>> groupAnnotations = fieldMetadata.getGroupAnnotations();
Map<String, Set<String>> groupAnnotations = fieldMetadata.getGroupValidationMessage();
if (groupAnnotations != null) {
for (String validateGroup : validateGroups) {
Set<String> validateMessage = groupAnnotations.get(validateGroup);