fix dup gen const for http (#2102)

Co-authored-by: caoguoliang01 <caoguoliang01@bilibili.com>
fix/issue_2069
longxboy 3 years ago committed by GitHub
parent e3c37b936f
commit 2a989ea0fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/protoc-gen-go-http/template.go

@ -10,7 +10,7 @@ var httpTemplate = `
{{$svrType := .ServiceType}}
{{$svrName := .ServiceName}}
{{- range .Methods}}
{{- range .MethodSets}}
const Operation{{$svrType}}{{.OriginalName}} = "/{{$svrName}}/{{.OriginalName}}"
{{- end}}

Loading…
Cancel
Save