(req *proto.RegisterRequest)
| 67 | } |
| 68 | |
| 69 | func (rpc *RpcLogic) Register(req *proto.RegisterRequest) (code int, authToken string, msg string) { |
| 70 | reply := &proto.RegisterReply{} |
| 71 | err := LogicRpcClient.Call(context.Background(), "Register", req, reply) |
| 72 | if err != nil { |
| 73 | msg = err.Error() |
| 74 | } |
| 75 | code = reply.Code |
| 76 | authToken = reply.AuthToken |
| 77 | return |
| 78 | } |
| 79 | |
| 80 | func (rpc *RpcLogic) GetUserNameByUserId(req *proto.GetUserInfoRequest) (code int, userName string) { |
| 81 | reply := &proto.GetUserInfoResponse{} |