1
0
mirror of https://github.com/gogf/gf.git synced 2025-04-05 11:18:50 +08:00

Merge b567079a9c70b40cc702fc766b8cb2fdd9ba9628 into fee38b4531224b929c095ef643a68a92bbad3d4b

This commit is contained in:
jarry8359 2025-03-26 14:00:40 +08:00 committed by GitHub
commit a0a6506324
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,7 +71,7 @@ func generateStructFieldDefinition(
err error
localTypeName gdb.LocalType
localTypeNameStr string
jsonTag = gstr.CaseConvert(field.Name, gstr.CaseTypeMatch(in.JsonCase))
jsonTag = gstr.CaseConvert(gstr.ToLower(field.Name), gstr.CaseTypeMatch(in.JsonCase))
)
if in.TypeMapping != nil && len(in.TypeMapping) > 0 {