Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
wubin1989 committed Dec 8, 2023
1 parent 48c2a75 commit ddecb95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/internal/svc/codegen/httphandlerimpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var appendHttpHandlerImplTmpl = `
{{ $p.Name }} {{ $p.Type }}
{{- else if and (eq $m.HttpMethod "GET") (not (isBuiltin $p)) }}
{{ $p.Name }}Wrapper struct {
{{ $p.Name | title }} {{ $p.Type }} ` + "`" + `form:"{{ $p.Name }}"` + "`" + `
{{ $p.Name | title }} {{ $p.Type }} ` + "`" + `json:"{{ $p.Name }}"` + "`" + `
}
{{- else }}
{{ $p.Name }} {{ $p.Type }}
Expand Down

0 comments on commit ddecb95

Please sign in to comment.