fix incorrect return type in service template (#935)

pull/939/head
webliupeng 4 years ago committed by GitHub
parent 65d8b48f9a
commit 248d30f068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/kratos/internal/proto/server/template.go

@ -18,7 +18,7 @@ type {{.Service}}Service struct {
pb.Unimplemented{{.Service}}Server
}
func New{{.Service}}Service() pb.{{.Service}}Server {
func New{{.Service}}Service() *{{.Service}}Service {
return &{{.Service}}Service{}
}
{{ range .Methods }}

Loading…
Cancel
Save