【7.1.6】【scanner】更新一个字段类型枚举类

pull/25/head
fengshuonan 2022-01-13 18:38:11 +08:00
parent daf651e75c
commit c2c0cd676e
2 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,59 @@
/*
* Copyright [2020-2030] [https://www.stylefeng.cn]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* GunsAPACHE LICENSE 2.0使
*
* 1.LICENSE
* 2.Guns
* 3.
* 4. https://gitee.com/stylefeng/guns
* 5. https://gitee.com/stylefeng/guns
* 6.
*/
package cn.stylefeng.roses.kernel.scanner.api.enums;
import lombok.Getter;
/**
*
*
* @author fengshuonan
* @date 2022/1/13 16:37
*/
@Getter
public enum FieldTypeEnum {
/**
* javaintlongIntegerStringDoubleBigDecimal
*/
BASIC(1),
/**
* javaCollection
*/
ARRAY(2),
/**
* java
*/
OBJECT(3);
FieldTypeEnum(Integer code) {
this.code = code;
}
private final Integer code;
}

View File

@ -98,6 +98,12 @@ public class FieldMetadata {
@ChineseDescription("泛型或object类型的字段的描述(1-字段2-泛型)")
private Integer genericFieldMetadataType;
/**
* 1-2-3-
*/
@ChineseDescription("字段类型1-基本类型2-数组3-实体对象")
private Integer fieldType;
/**
* object
*/