feat(database/gdb): add time field type for value converting for/from field (#3712)

This commit is contained in:
CyJaySong
2024-09-10 17:51:22 +08:00
committed by GitHub
parent baea1c7a7a
commit bb9a3b83eb
8 changed files with 84 additions and 31 deletions

View File

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