hello.go 236 B

1234567891011
  1. package rpc
  2. import (
  3. "context"
  4. "passport/app/rpc/pb"
  5. )
  6. func (s *Server) SayHello(ctx context.Context, req *passportpb.HelloRequest) (*passportpb.HelloReply, error) {
  7. return &passportpb.HelloReply{Name: "hello:" + req.Name}, nil
  8. }