mirror of https://gitee.com/stylefeng/roses
【8.3.0】【scanner】抽出一个固定常量
parent
8beffddd40
commit
4bc4ea76ad
|
@ -102,4 +102,9 @@ public interface ScannerConstants {
|
|||
*/
|
||||
String REPORT_RES_AND_GET_RESULT_URL = "/resourceService/reportResourcesAndGetResult";
|
||||
|
||||
/**
|
||||
* 数组类型固定的元素名称
|
||||
*/
|
||||
String ARRAY_FILED_CODE = "arrayItems";
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
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;
|
||||
|
||||
/**
|
||||
|
@ -21,7 +22,7 @@ public class ArrayMetadataFactory {
|
|||
return;
|
||||
}
|
||||
fieldMetadata.setChineseName("数组元素类型");
|
||||
fieldMetadata.setFieldName("arrayItems");
|
||||
fieldMetadata.setFieldName(ScannerConstants.ARRAY_FILED_CODE);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue