fix data type

This commit is contained in:
2024-11-25 14:59:49 +08:00
parent 91423fb146
commit 2f87fe0cd9
3 changed files with 5 additions and 4 deletions

5
any.go
View File

@ -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