1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00

fix dup gen const for http (#2102)

Co-authored-by: caoguoliang01 <caoguoliang01@bilibili.com>
This commit is contained in:
longxboy 2022-06-16 18:58:16 +08:00 committed by GitHub
parent e3c37b936f
commit 2a989ea0fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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