增加数据类型枚举值

This commit is contained in:
白茶清欢 2024-04-29 16:26:41 +08:00
parent 9cd57471a8
commit eeef7e967d

View File

@ -8,24 +8,29 @@
package consts package consts
const ( const (
DataTypeInt = "int" // int类型 -> int64 DataTypeInt = "int" // int类型 -> int64
DataTypeUint = "uint" // uint类型 -> uint64 DataTypeUint = "uint" // uint类型 -> uint64
DataTypeFloat = "float" // float类型 -> float64 DataTypeFloat = "float" // float类型 -> float64
DataTypeBool = "bool" // bool类型 DataTypeBool = "bool" // bool类型
DataTypeString = "string" // 字符串类型 DataTypeString = "string" // 字符串类型
DataTypeSliceInt = "[]int" // int数组 -> []int64 DataTypeSliceInt = "[]int" // int数组 -> []int64
DataTypeSliceUint = "[]uint" // uint数组 -> []uint64 DataTypeSliceIntWithChar = "[]int_split" // int数组 -> []int64, 按照指定字符切割
DataTypeSliceFloat = "[]float" // float数组 -> []float64 DataTypeSliceUint = "[]uint" // uint数组 -> []uint64
DataTypeSliceBool = "[]bool" // bool数组 -> []bool DataTypeSliceUintWithChar = "[]uint_split" // uint数组 -> []uint64 指定字符切割
DataTypeSliceString = "[]string" // 字符串数组 -> []string DataTypeSliceFloat = "[]float" // float数组 -> []float64
DataTypeMapStrInt = "map[string]int" // map -> map[string]int64 DataTypeSliceFloatWithChar = "[]float_split" // float数组 -> []float64, 指定字符切割
DataTypeMapStrUint = "map[string]uint" // map -> map[string]uint64 DataTypeSliceBool = "[]bool" // bool数组 -> []bool
DataTypeMapStrFloat = "map[string]float" // map -> map[string]float64 DataTypeSliceBoolWithChar = "[]bool_split" // bool数组 -> []bool, 指定字符切割
DataTypeMapStrBool = "map[string]bool" // map -> map[string]bool DataTypeSliceString = "[]string" // 字符串数组 -> []string
DataTypeMapStrAny = "map[string]any" // map -> map[string]interface{} DataTypeSliceStringWithChar = "[]string_split" // 字符串数组 -> []string, 指定字符切割
DataTypeMapAnyAny = "map[any]any" // map -> map[interface{}]interface{} DataTypeMapStrInt = "map[string]int" // map -> map[string]int64
DataTypeMapStrSlice = "map[string][]any" // map -> map[string][]interface{} DataTypeMapStrUint = "map[string]uint" // map -> map[string]uint64
DataTypeAny = "any" // 任意类型 -> interface{} DataTypeMapStrFloat = "map[string]float" // map -> map[string]float64
DataTypeMapStrBool = "map[string]bool" // map -> map[string]bool
DataTypeMapStrAny = "map[string]any" // map -> map[string]interface{}
DataTypeMapAnyAny = "map[any]any" // map -> map[interface{}]interface{}
DataTypeMapStrSlice = "map[string][]any" // map -> map[string][]interface{}
DataTypeAny = "any" // 任意类型 -> interface{}
) )
const ( const (