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}} }