Skip to content

Commit 88a6b45

Browse files
ChangedenCZDChangeden
andauthored
更新泛化调用请求参数 (#237)
Co-authored-by: Changeden <chenzhiduan@unizone.tech>
1 parent b36976b commit 88a6b45

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

generic/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ func main() {
3636
//parameter type
3737
[]string{"org.apache.dubbo.User"},
3838
//parameter array
39-
[]interface{}{user},
39+
[]hessian.Object{user},
4040
},
4141
)
4242
}
4343

44-
```
44+
```

generic/README_zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ func main() {
3333
//参数类型数组
3434
[]string{"org.apache.dubbo.User"},
3535
//参数数组
36-
[]interface{}{user},
36+
[]hessian.Object{user},
3737
},
3838
)
3939
}
4040

41-
```
41+
```

generic/go-server/tests/integration/userprovider_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828
import (
2929
"github.com/apache/dubbo-go/config"
3030

31+
hessian "github.com/apache/dubbo-go-hessian2"
3132
"github.com/stretchr/testify/assert"
3233
)
3334

@@ -37,7 +38,7 @@ func TestGetUser(t *testing.T) {
3738
[]interface{}{
3839
"GetUser",
3940
[]string{"java.lang.String"},
40-
[]interface{}{"A003"},
41+
[]hessian.Object{"A003"},
4142
},
4243
)
4344

@@ -62,7 +63,7 @@ func TestQueryUser(t *testing.T) {
6263
[]interface{}{
6364
"queryUser",
6465
[]string{"org.apache.dubbo.User"},
65-
[]interface{}{user},
66+
[]hessian.Object{user},
6667
},
6768
)
6869

0 commit comments

Comments
 (0)