mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
feat(database/gdb): add time field type for value converting for/from field (#3712)
This commit is contained in:
@ -99,7 +99,7 @@ func generateStructFieldDefinition(
|
||||
}
|
||||
localTypeNameStr = string(localTypeName)
|
||||
switch localTypeName {
|
||||
case gdb.LocalTypeDate, gdb.LocalTypeDatetime:
|
||||
case gdb.LocalTypeDate, gdb.LocalTypeTime, gdb.LocalTypeDatetime:
|
||||
if in.StdTime {
|
||||
localTypeNameStr = "time.Time"
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user