【7.1.6】【scanner】删除无用方法

pull/25/MERGE
fengshuonan 2022-01-15 10:12:12 +08:00
parent 3f7ea50f84
commit 889596ec78
1 changed files with 0 additions and 54 deletions

View File

@ -50,60 +50,6 @@ public class ClassReflectUtil {
*/
private final static Map<String, String> RUN_MAP = new HashMap<>(2);
/**
* ResponseDataclazzResponseDatadata
*
* @author fengshuonan
* @date 2022/1/7 15:37
*/
public static Set<FieldMetadata> getResponseDataClassFieldDescription(Class<?> clazz) {
HashSet<FieldMetadata> responseDataFieldMetadata = new HashSet<>();
// 创建ResponseData几个固定的属性描述
FieldMetadata success = new FieldMetadata();
success.setMetadataId(IdUtil.fastSimpleUUID());
success.setChineseName("请求是否成功");
success.setFieldClassType("Boolean");
success.setFieldClassPath("java.lang.Boolean");
success.setFieldName("success");
responseDataFieldMetadata.add(success);
// 创建ResponseData几个固定的属性描述
FieldMetadata code = new FieldMetadata();
code.setMetadataId(IdUtil.fastSimpleUUID());
code.setChineseName("响应状态码");
code.setFieldClassType("String");
code.setFieldClassPath("java.lang.String");
code.setFieldName("code");
responseDataFieldMetadata.add(code);
// 创建ResponseData几个固定的属性描述
FieldMetadata message = new FieldMetadata();
message.setMetadataId(IdUtil.fastSimpleUUID());
message.setChineseName("响应信息");
message.setFieldClassType("String");
message.setFieldClassPath("java.lang.String");
message.setFieldName("message");
responseDataFieldMetadata.add(message);
// 创建ResponseData几个固定的属性描述
FieldMetadata data = new FieldMetadata();
data.setMetadataId(IdUtil.fastSimpleUUID());
data.setChineseName("响应对象");
data.setFieldClassType(clazz.getSimpleName());
data.setFieldClassPath(clazz.getName());
data.setFieldName("data");
// 设置data属性类型具体的元数据
Set<FieldMetadata> dataFieldMetadata = getClassFieldDescription(clazz);
data.setGenericFieldMetadata(dataFieldMetadata);
responseDataFieldMetadata.add(data);
return responseDataFieldMetadata;
}
/**
*
*