Skip to content

Commit

Permalink
fix: ormat 默认snake模式
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkgos committed Sep 14, 2024
1 parent 4a84fb7 commit 38e148e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ormat/command/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func newModelCmd() *modelCmd {
cmd.Flags().StringVar(&root.PackageName, "package", "", "package name")
cmd.Flags().BoolVar(&root.DisableDocComment, "disableDocComment", false, "禁用文档注释")

cmd.Flags().StringToStringVar(&root.Tags, "tags", map[string]string{"json": utils.StyleSmallCamelCase}, "tags标签,类型支持[smallCamelCase,pascalCase,snakeCase,kebab]")
cmd.Flags().StringToStringVar(&root.Tags, "tags", map[string]string{"json": utils.StyleSnakeCase}, "tags标签,类型支持[smallCamelCase,pascalCase,snakeCase,kebab]")
cmd.Flags().BoolVar(&root.EnableInt, "enableInt", false, "使能int8,uint8,int16,uint16,int32,uint32输出为int,uint")
cmd.Flags().BoolVar(&root.EnableBoolInt, "enableBoolInt", false, "使能bool输出int")
cmd.Flags().BoolVar(&root.DisableNullToPoint, "disableNullToPoint", false, "禁用字段为null时输出指针类型,将输出为sql.Nullxx")
Expand Down

0 comments on commit 38e148e

Please sign in to comment.