proto/goutils/proto_build/tpls/main_gen.tpl
2023-12-05 10:41:26 +08:00

17 lines
425 B
Smarty

package main
import (
"{{.ProjectName}}/gen/go/service"
{{range .StructServiceNames}}
"{{$.ProjectName}}/server/logics/{{.LogicPackageName}}"
{{- end}}
"google.golang.org/grpc"
)
func MainRegisterServer(s *grpc.Server) {
{{range .StructServiceNames}}
service.Register{{.StructServiceName}}Server(s, &{{.LogicPackageName}}.{{.StructServiceName}}LogicGrpc{}) // {{.LogicPackageName}}
{{- end}}
}