【8.3.0】【scanner】抽出一个固定常量

master
stylefeng 2024-08-26 00:09:16 +08:00
parent 8beffddd40
commit 4bc4ea76ad
2 changed files with 7 additions and 1 deletions

View File

@ -102,4 +102,9 @@ public interface ScannerConstants {
*/ */
String REPORT_RES_AND_GET_RESULT_URL = "/resourceService/reportResourcesAndGetResult"; String REPORT_RES_AND_GET_RESULT_URL = "/resourceService/reportResourcesAndGetResult";
/**
*
*/
String ARRAY_FILED_CODE = "arrayItems";
} }

View File

@ -1,5 +1,6 @@
package cn.stylefeng.roses.kernel.scanner.api.factory; package cn.stylefeng.roses.kernel.scanner.api.factory;
import cn.stylefeng.roses.kernel.scanner.api.constants.ScannerConstants;
import cn.stylefeng.roses.kernel.scanner.api.pojo.resource.FieldMetadata; import cn.stylefeng.roses.kernel.scanner.api.pojo.resource.FieldMetadata;
/** /**
@ -21,7 +22,7 @@ public class ArrayMetadataFactory {
return; return;
} }
fieldMetadata.setChineseName("数组元素类型"); fieldMetadata.setChineseName("数组元素类型");
fieldMetadata.setFieldName("arrayItems"); fieldMetadata.setFieldName(ScannerConstants.ARRAY_FILED_CODE);
} }
} }