proto/goutils/proto_build/tpls/main_gen.tpl
huangsimin@fusen.cn 4cfab40419 测试
2023-12-04 17:15:41 +08:00

16 lines
419 B
Smarty

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