增加数据类型的定义
This commit is contained in:
parent
666060e4de
commit
2fea122027
84
data_type.go
84
data_type.go
@ -8,37 +8,54 @@
|
||||
package consts
|
||||
|
||||
const (
|
||||
DataTypeUnknown = "unknown" // 位置数据类型
|
||||
DataTypeNil = "nil" // nil
|
||||
DataTypePtr = "ptr" // 指针
|
||||
DataTypeInt = "int" // int类型 -> int64
|
||||
DataTypeUint = "uint" // uint类型 -> uint64
|
||||
DataTypeFloat = "float" // float类型 -> float64
|
||||
DataTypeBool = "bool" // bool类型
|
||||
DataTypeString = "string" // 字符串类型
|
||||
DataTypeSliceAny = "[]any" // any数组 -> []any
|
||||
DataTypeSliceInt = "[]int" // int数组 -> []int64
|
||||
DataTypeSliceIntWithChar = "[]int_split" // int数组 -> []int64, 按照指定字符切割
|
||||
DataTypeSliceUint = "[]uint" // uint数组 -> []uint64
|
||||
DataTypeSliceUintWithChar = "[]uint_split" // uint数组 -> []uint64, 指定字符切割
|
||||
DataTypeSliceFloat = "[]float" // float数组 -> []float64
|
||||
DataTypeSliceFloatWithChar = "[]float_split" // float数组 -> []float64, 指定字符切割
|
||||
DataTypeSliceBool = "[]bool" // bool数组 -> []bool
|
||||
DataTypeSliceBoolWithChar = "[]bool_split" // bool数组 -> []bool, 指定字符切割
|
||||
DataTypeSliceString = "[]string" // 字符串数组 -> []string
|
||||
DataTypeSliceStringWithChar = "[]string_split" // 字符串数组 -> []string, 指定字符切割
|
||||
DataTypeSliceSlice = "[][]any" // 字符串数组 -> [][]any
|
||||
DataTypeSliceMapAnyAny = "[]map[any]any" // 字符串数组 -> map[any]any, slice对象
|
||||
DataTypeSliceMapStringAny = "[]map[string]any" // 字符串数组 -> map[string]any, slice对象
|
||||
DataTypeMapStrInt = "map[string]int" // map -> map[string]int64
|
||||
DataTypeMapStrUint = "map[string]uint" // map -> map[string]uint64
|
||||
DataTypeMapStrFloat = "map[string]float" // map -> map[string]float64
|
||||
DataTypeMapStrBool = "map[string]bool" // map -> map[string]bool
|
||||
DataTypeMapStrAny = "map[string]any" // map -> map[string]interface{}
|
||||
DataTypeMapStrStr = "map[string]string" // map -> map[string]string
|
||||
DataTypeMapAnyAny = "map[any]any" // map -> map[interface{}]interface{}
|
||||
DataTypeMapStrSlice = "map[string][]any" // map -> map[string][]interface{}
|
||||
DataTypeAny = "any" // 任意类型 -> interface{}
|
||||
DataTypeUnknown = "unknown" // 位置数据类型
|
||||
DataTypeNil = "nil" // nil
|
||||
DataTypePtr = "ptr" // 指针
|
||||
DataTypeInt = "int" // int类型 -> int64
|
||||
DataTypeUint = "uint" // uint类型 -> uint64
|
||||
DataTypeFloat = "float" // float类型 -> float64
|
||||
DataTypeBool = "bool" // bool类型
|
||||
DataTypeString = "string" // 字符串类型
|
||||
DataTypeSliceAny = "[]any" // any数组 -> []any
|
||||
DataTypeSliceAnyWithMarshal = "[]any_marshal" // any数组 -> []any, json序列化之后的结构
|
||||
DataTypeSliceInt = "[]int" // int数组 -> []int64
|
||||
DataTypeSliceIntWithChar = "[]int_split" // int数组 -> []int64, 按照指定字符切割
|
||||
DataTypeSliceIntWithMarshal = "[]int_marshal" // int数组 -> []int64, json序列化之后的结果
|
||||
DataTypeSliceUint = "[]uint" // uint数组 -> []uint64
|
||||
DataTypeSliceUintWithChar = "[]uint_split" // uint数组 -> []uint64, 指定字符切割
|
||||
DataTypeSliceUintWithMarshal = "[]uint_marshal" // uint数组 -> []uint64, json序列化之后的结果
|
||||
DataTypeSliceFloat = "[]float" // float数组 -> []float64
|
||||
DataTypeSliceFloatWithChar = "[]float_split" // float数组 -> []float64, 指定字符切割
|
||||
DataTypeSliceFloatWithMarshal = "[]float_marshal" // float数组 -> []float64, json序列化之后的结果
|
||||
DataTypeSliceBool = "[]bool" // bool数组 -> []bool
|
||||
DataTypeSliceBoolWithChar = "[]bool_split" // bool数组 -> []bool, 指定字符切割
|
||||
DataTypeSliceBoolWithMarshal = "[]bool_marshal" // bool数组 -> []bool, json序列化之后的结果
|
||||
DataTypeSliceString = "[]string" // 字符串数组 -> []string
|
||||
DataTypeSliceStringWithChar = "[]string_split" // 字符串数组 -> []string, 指定字符切割
|
||||
DataTypeSliceStringWithMarshal = "[]string_marshal" // 字符串数组 -> []string, json序列化之后的结果
|
||||
DataTypeSliceSlice = "[][]any" // 字符串数组 -> [][]any
|
||||
DataTypeSliceSliceWithMarshal = "[][]any_marshal" // 字符串数组 -> [][]any,json序列化之后的结果
|
||||
DataTypeSliceMapAnyAny = "[]map[any]any" // 字符串数组 -> []map[any]any, slice对象
|
||||
DataTypeSliceMapAnyAnyWithMarshal = "[]map[any]any_marshal" // 字符串数组 -> []map[any]any, json序列化后的结果
|
||||
DataTypeSliceMapStringAny = "[]map[string]any" // 字符串数组 -> map[string]any, slice对象
|
||||
DataTypeSliceMapStringAnyWithMarshal = "[]map[string]any_marshal" // 字符串数组 -> []map[string]any, slice对象, json序列化之后的结果
|
||||
DataTypeMapStrInt = "map[string]int" // map -> map[string]int64
|
||||
DataTypeMapStrIntWithMarshal = "map[string]int_marshal" // map -> map[string]int64,json序列化之后的结果
|
||||
DataTypeMapStrUint = "map[string]uint" // map -> map[string]uint64
|
||||
DataTypeMapStrUintWithMarshal = "map[string]uint_marshal" // map -> map[string]uint64, json序列化之后的结果
|
||||
DataTypeMapStrFloat = "map[string]float" // map -> map[string]float64
|
||||
DataTypeMapStrFloatWithMarshal = "map[string]float_marshal" // map -> map[string]float64, json序列化之后的结果
|
||||
DataTypeMapStrBool = "map[string]bool" // map -> map[string]bool
|
||||
DataTypeMapStrBoolWithMarshal = "map[string]bool_marshal" // map -> map[string]bool,json序列换之后的结果
|
||||
DataTypeMapStrAny = "map[string]any" // map -> map[string]any
|
||||
DataTypeMapStrAnyWithMarshal = "map[string]any_marshal" // map -> map[string]any, json序列化之后的结果
|
||||
DataTypeMapStrStr = "map[string]string" // map -> map[string]string
|
||||
DataTypeMapStrStrWithMarshal = "map[string]string_marshal" // map -> map[string]string, json薛烈换之后的结果
|
||||
DataTypeMapAnyAny = "map[any]any" // map -> map[any]any
|
||||
DataTypeMapAnyAnyWithMarshal = "map[any]any_marshal" // map -> map[any]any, json序列化之后的结果
|
||||
DataTypeMapStrSlice = "map[string][]any" // map -> map[string][]any
|
||||
DataTypeMapStrSliceWithMarshal = "map[string][]any_marshal" // map -> map[string][]any, json 序列化之后的结果
|
||||
DataTypeAny = "any" // 任意类型 -> any
|
||||
)
|
||||
|
||||
const (
|
||||
@ -54,3 +71,8 @@ const (
|
||||
DataSliceModelMarshal = "MARSHAL"
|
||||
DataSliceModelWithSplitChar = "WITH_SPLIT_CHAR"
|
||||
)
|
||||
|
||||
const (
|
||||
DataMapModelReal = "REAL"
|
||||
DataMapModelMarshal = "MARSHAL"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user