完善数据类型转换
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user