增加生成新节点的方法

This commit is contained in:
2023-03-28 23:56:13 +08:00
parent 055c833fce
commit f24fe13e4b
3 changed files with 137 additions and 2 deletions

View File

@ -27,6 +27,8 @@ const (
const (
// ValueTypeString 字符串类型
ValueTypeString = "string"
// ValueTypeBool bool类型
ValueTypeBool = "bool"
// ValueTypeInteger int类型
ValueTypeInteger = "int64"
// ValueTypeFloat float类型
@ -36,3 +38,12 @@ const (
// ValueTypeArray 数组
ValueTypeArray = "array"
)
// isBaseDataType 是否为基础数据类型
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 23:16 2023/3/28
func isBaseDataType(valueType string) bool {
return valueType != ValueTypeArray && valueType != ValueTypeMap
}