Skip to content

Commit

Permalink
重构
Browse files Browse the repository at this point in the history
  • Loading branch information
xta6714 committed Jan 14, 2024
1 parent c092c9d commit d8207f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion field_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ var (
FieldJSONTag = func(columnName string, jsonTag string) model.ModifyFieldOpt {
return func(m *model.Field) *model.Field {
if m.ColumnName == columnName {
m.Tag.Set(field.TagKeyJson, jsonTag)
m.Tag.Set(field.TagKeyJson, m.Name)
}
return m
}
Expand Down

0 comments on commit d8207f8

Please sign in to comment.