fix: cmd gen dao typeMapping.Name=>typeMapping.Type (#2723)

This commit is contained in:
Lonely
2023-06-28 10:55:08 +08:00
committed by GitHub
parent 22696566d6
commit 8c4a0b61b8

View File

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