mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
fix: cmd gen dao typeMapping.Name=>typeMapping.Type (#2723)
This commit is contained in:
@ -84,7 +84,7 @@ func generateStructFieldDefinition(
|
||||
}
|
||||
if tryTypeName != "" {
|
||||
if typeMapping, ok := in.TypeMapping[strings.ToLower(tryTypeName)]; ok {
|
||||
typeName = typeMapping.Name
|
||||
typeName = typeMapping.Type
|
||||
appendImport = typeMapping.Import
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user