You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/09/09 06:46:52 UTC
[dubbo-go-samples] branch 1.5 updated: 更新泛化调用请求参数 (#237)
This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch 1.5
in repository https://gitbox.apache.org/repos/asf/dubbo-go-samples.git
The following commit(s) were added to refs/heads/1.5 by this push:
new 88a6b45 更新泛化调用请求参数 (#237)
88a6b45 is described below
commit 88a6b45cfe416ece57d26a7f0eef5a7fd6688de6
Author: ChangedenChan <ch...@gmail.com>
AuthorDate: Thu Sep 9 14:46:44 2021 +0800
更新泛化调用请求参数 (#237)
Co-authored-by: Changeden <ch...@unizone.tech>
---
generic/README.md | 4 ++--
generic/README_zh.md | 4 ++--
generic/go-server/tests/integration/userprovider_test.go | 5 +++--
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/generic/README.md b/generic/README.md
index eb62c44..15c6564 100644
--- a/generic/README.md
+++ b/generic/README.md
@@ -36,9 +36,9 @@ func main() {
//parameter type
[]string{"org.apache.dubbo.User"},
//parameter array
- []interface{}{user},
+ []hessian.Object{user},
},
)
}
-```
\ No newline at end of file
+```
diff --git a/generic/README_zh.md b/generic/README_zh.md
index 3a4368b..224025c 100644
--- a/generic/README_zh.md
+++ b/generic/README_zh.md
@@ -33,9 +33,9 @@ func main() {
//参数类型数组
[]string{"org.apache.dubbo.User"},
//参数数组
- []interface{}{user},
+ []hessian.Object{user},
},
)
}
-```
\ No newline at end of file
+```
diff --git a/generic/go-server/tests/integration/userprovider_test.go b/generic/go-server/tests/integration/userprovider_test.go
index 975e40b..585cc53 100644
--- a/generic/go-server/tests/integration/userprovider_test.go
+++ b/generic/go-server/tests/integration/userprovider_test.go
@@ -28,6 +28,7 @@ import (
import (
"github.com/apache/dubbo-go/config"
+ hessian "github.com/apache/dubbo-go-hessian2"
"github.com/stretchr/testify/assert"
)
@@ -37,7 +38,7 @@ func TestGetUser(t *testing.T) {
[]interface{}{
"GetUser",
[]string{"java.lang.String"},
- []interface{}{"A003"},
+ []hessian.Object{"A003"},
},
)
@@ -62,7 +63,7 @@ func TestQueryUser(t *testing.T) {
[]interface{}{
"queryUser",
[]string{"org.apache.dubbo.User"},
- []interface{}{user},
+ []hessian.Object{user},
},
)