modify the returned id type

This commit is contained in:
zhuyasen
2024-07-30 00:49:30 +08:00
parent 42b8f76753
commit 46527efeec
13 changed files with 24 additions and 17 deletions

View File

@@ -687,6 +687,7 @@ func getHandlerStructCodes(data tmplData) (string, error) {
field.GoType = "[]*model." + strings.ReplaceAll(field.GoType, "[]*", "")
}
}
field.JSONName = customToCamel(field.ColName)
newFields = append(newFields, field)
}
data.Fields = newFields