Skip to content

Commit

Permalink
fix: change priority
Browse files Browse the repository at this point in the history
  • Loading branch information
shuai_yang committed Jul 28, 2023
1 parent 42ef849 commit 7cf17e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/protoc-gen-go-http/httpTemplate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ func Register{{.ServiceType}}HTTPServer(s *http.Server, srv {{.ServiceType}}HTTP
func _{{$svrType}}_{{.Name}}{{.Num}}_HTTP_Handler(srv {{$svrType}}HTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in {{.Request}}
if err := ctx.BindQuery(&in{{.Body}}); err != nil {
return err
}
{{- if .HasBody}}
if err := ctx.Bind(&in{{.Body}}); err != nil {
return err
}
{{- end}}
if err := ctx.BindQuery(&in); err != nil {
return err
}
{{- if .HasVars}}
if err := ctx.BindVars(&in); err != nil {
return err
Expand Down

0 comments on commit 7cf17e6

Please sign in to comment.