mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-17 21:07:54 +02:00
fix incorrect return type in service template (#935)
This commit is contained in:
parent
65d8b48f9a
commit
248d30f068
@ -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…
x
Reference in New Issue
Block a user