tpl format

This commit is contained in:
白茶清欢 2024-04-14 21:44:08 +08:00
parent e8d19587f3
commit b5766839fa

View File

@ -171,8 +171,8 @@ func generateTableColumnDefined(modelStructName string, columnList []*sqlparser.
structFieldCommentDefine = strings.ReplaceAll(structFieldCommentDefine, k, v) structFieldCommentDefine = strings.ReplaceAll(structFieldCommentDefine, k, v)
} }
structFieldResult += structFieldDefine + "\n" structFieldResult += structFieldDefine + "\n"
structFieldDescInstanceResult += structFieldDescDefine + ",\n" structFieldDescInstanceResult += " " + structFieldDescDefine + ",\n"
structFieldCommentInstanceResult += structFieldCommentDefine + ",\n" structFieldCommentInstanceResult += " " + structFieldCommentDefine + ",\n"
} }
structFieldResult += "}" structFieldResult += "}"
structFieldDescInstanceResult += " }" structFieldDescInstanceResult += " }"