LaurenceLiZhixin commented on a change in pull request #230:
URL: https://github.com/apache/dubbo-go-samples/pull/230#discussion_r704943698
##########
File path: generic/default/go-client/cmd/client.go
##########
@@ -93,25 +110,131 @@ func initSignal() {
}
func callGetUser() {
- gxlog.CInfo("\n\n\nstart to generic invoke")
- resp, err :=
referenceConfig.GetRPCService().(*config.GenericService).Invoke(
+ logger.Infof("Call GetUser")
+ logger.Infof("Start to generic invoke")
+ resp, err :=
referenceConfig.GetRPCService().(*generic.GenericService).Invoke(
context.TODO(),
[]interface{}{
- "GetUser",
+ "GetUser1",
[]string{"java.lang.String"},
[]hessian.Object{"A003"},
},
)
if err != nil {
panic(err)
}
- gxlog.CInfo("res: %+v\n", resp)
- gxlog.CInfo("success!")
+ logger.Infof("\n\nGetUser1(userId string) res: %+v\n", resp)
+
+ resp, err =
referenceConfig.GetRPCService().(*generic.GenericService).Invoke(
+ context.TODO(),
+ []interface{}{
+ "GetUser2",
+ []string{"java.lang.String", "java.lang.String"},
+ []hessian.Object{"A003", "lily"},
+ },
+ )
+ if err != nil {
+ panic(err)
+ }
+ logger.Infof("\n\nGetUser2(userId string, name string) res: %+v\n",
resp)
+
+ resp, err =
referenceConfig.GetRPCService().(*generic.GenericService).Invoke(
+ context.TODO(),
+ []interface{}{
Review comment:
好的
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]