From ac110d7f88696d855b9ce6f399a6ad5f151032f7 Mon Sep 17 00:00:00 2001 From: kexianjun Date: Tue, 11 Dec 2018 22:08:46 +0800 Subject: [PATCH] Modify the documentation of the Telnet command to match the code implementation --- docs/en-us/user/references/telnet.md | 9 +++++++-- docs/zh-cn/user/references/telnet.md | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/docs/en-us/user/references/telnet.md b/docs/en-us/user/references/telnet.md index 340683947b6e..599b3108a927 100644 --- a/docs/en-us/user/references/telnet.md +++ b/docs/en-us/user/references/telnet.md @@ -60,8 +60,13 @@ The built-in telnet commands are listed below. Furthermore, it is possible to ex ### `invoke` -0. `invoke XxxService.xxxMethod({"prop": "value"})`: invoke particular method for the given service -0. `invoke xxxMethod({"prop": "value"})`: invoke particular method for the default service +0. `invoke xxxService.xxxMethod("paramStr")`或`invoke xxxService.xxxMethod(18)`: invoke particular method with a primitive type parameter +0. `invoke xxxService.xxxMethod("paramStr") -p java.lang.String`: invoke particular method with a String type parameter +0. `invoke xxxService.xxxMethod(18) -p java.lang.Integer`: invoke particular method with an Integer type parameter +0. `invoke xxxService.xxxMethod(18L) -p java.lang.Long`: invoke particular method with a Long type parameter +0. `invoke xxxService.xxxMethod(18, 18L) -p java.lang.Integer java.lang.Long`: invoke particular method with an Integer and a Long type parameters +0. `invoke xxxService.xxxMethod({"prop": "value1"}) -p xxx.xx.XxxClass`: invoke particular method with a XxxClass(witch prop attribute's value is value1) type parameter +0. `invoke xxxService.xxxMethod({"prop": "value"},{"prop1":"value1"}) -p xxx.xx.XxxClass1 xxx.xx.XxxClass`: invoke particular method with a XxxCalss1 and a XxxClass type parameters ### `status` diff --git a/docs/zh-cn/user/references/telnet.md b/docs/zh-cn/user/references/telnet.md index 1cc5e8af2ec6..886b0410d2ea 100644 --- a/docs/zh-cn/user/references/telnet.md +++ b/docs/zh-cn/user/references/telnet.md @@ -62,8 +62,13 @@ status命令所检查的资源也可以扩展,参见:[扩展参考手册](.. ### `invoke` -0. `invoke XxxService.xxxMethod({"prop": "value"})`: 调用服务的方法 -0. `invoke xxxMethod({"prop": "value"})`: 调用服务的方法(自动查找包含此方法的服务) +0. `invoke xxxService.xxxMethod("paramStr")`或`invoke xxxService.xxxMethod(18)`: 调用参数为基本类型的方法 +0. `invoke xxxService.xxxMethod("paramStr") -p java.lang.String`: 调用参数为String类型的方法 +0. `invoke xxxService.xxxMethod(18) -p java.lang.Integer`: 调用参数为Integer类型的方法 +0. `invoke xxxService.xxxMethod(18L) -p java.lang.Long`: 调用参数为Long类型的方法 +0. `invoke xxxService.xxxMethod(18, 18L) -p java.lang.Integer java.lang.Long`: 调用参数为Integer、Long类型的方法 +0. `invoke xxxService.xxxMethod({"prop": "value"}) -p xxx.xx.XxxClass`: 调用参数为XxxClass(属性prop的值为value)类型的方法 +0. `invoke xxxService.xxxMethod({"prop": "value"},{"prop1":"value1"}) -p xxx.xx.XxxClass1 xxx.xx.XxxClass`: 调用参数为XxxClass1、XxxClass类型的方法 ### `status`