完善数据类型转换

This commit is contained in:
Yun
2026-05-27 22:02:17 +08:00
parent 3fb090a620
commit 614ac34883
7 changed files with 1352 additions and 104 deletions
+4 -3
View File
@@ -6,9 +6,9 @@ import (
// ChangeInfo 变更信息
type ChangeInfo struct {
Old string `json:"old"`
New string `json:"new"`
Val any `json:"val"`
Old any `json:"old"`
New any `json:"new"`
Val any `json:"val"`
}
// FieldInfo 字段信息
@@ -24,6 +24,7 @@ type FieldInfo struct {
var (
basicStructTypes = map[string]bool{
"time.Time": true,
"time.Duration": true,
"github.com/shopspring/decimal.Decimal": true,
"sql.NullString": true,
"sql.NullInt64": true,