diff --git a/data_type.go b/data_type.go index 2c5d428..b09c53d 100644 --- a/data_type.go +++ b/data_type.go @@ -36,7 +36,7 @@ func (df *DataType) IsValid() bool { return false } -const ( +var ( DataTypeUnknown DataType = "unknown" // 位置数据类型 DataTypeNil DataType = "nil" // nil DataTypePtr DataType = "ptr" // 指针 @@ -67,7 +67,7 @@ const ( DataTypeSliceMapAnyAny DataType = "[]map[any]any" // 字符串数组 -> []map[any]any, slice对象 DataTypeSliceMapAnyAnyWithMarshal DataType = "[]map[any]any_marshal" // 字符串数组 -> []map[any]any, json序列化后的结果 DataTypeSliceMapStringAny DataType = "[]map[string]any" // 字符串数组 -> map[string]any, slice对象 - DataTypeSliceMapStringAnyWithMarshal = "[]map[string]any_marshal" // 字符串数组 -> []map[string]any, slice对象, json序列化之后的结果 + DataTypeSliceMapStringAnyWithMarshal DataType = "[]map[string]any_marshal" // 字符串数组 -> []map[string]any, slice对象, json序列化之后的结果 DataTypeMapStrInt DataType = "map[string]int" // map -> map[string]int64 DataTypeMapStrIntWithMarshal DataType = "map[string]int_marshal" // map -> map[string]int64,json序列化之后的结果 DataTypeMapStrUint DataType = "map[string]uint" // map -> map[string]uint64