You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/10/21 09:09:45 UTC
[GitHub] [dubbo-go-hessian2] ChangedenCZD commented on issue #284: golang 作为 provider 返回范型类型时 java consumer 解析应答数据报错
ChangedenCZD commented on issue #284:
URL: https://github.com/apache/dubbo-go-hessian2/issues/284#issuecomment-948412649
你试试统一用
```go
type MerchantResponse struct {
Code string
Message string
Data interface{}
}
func (MerchantResponse) JavaClassName() string {
return "com.xxx.common.Result"
}
```
再通过反射处理Data
--
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: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org