fix data type
This commit is contained in:
5
any.go
5
any.go
@ -10,7 +10,6 @@ package wrapper
|
||||
import (
|
||||
"fmt"
|
||||
"git.zhangdeman.cn/zhangdeman/consts"
|
||||
"git.zhangdeman.cn/zhangdeman/consts/enums"
|
||||
"git.zhangdeman.cn/zhangdeman/serialize"
|
||||
"reflect"
|
||||
)
|
||||
@ -35,7 +34,7 @@ func AnyDataType(data any) *AnyType {
|
||||
// Date : 18:19 2023/6/1
|
||||
type AnyType struct {
|
||||
data any
|
||||
dataType enums.DataType
|
||||
dataType consts.DataType
|
||||
}
|
||||
|
||||
// IsNil 是否为 nil
|
||||
@ -63,7 +62,7 @@ func (at *AnyType) IsNil() bool {
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 18:22 2023/6/1
|
||||
func (at *AnyType) Type() enums.DataType {
|
||||
func (at *AnyType) Type() consts.DataType {
|
||||
if len(at.dataType) > 0 {
|
||||
// 已经处理过的,无需在处理
|
||||
return at.dataType
|
||||
|
Reference in New Issue
Block a user