marsmay commented on issue #284:
URL:
https://github.com/apache/dubbo-go-hessian2/issues/284#issuecomment-948421026
> 你试试统一用
>
> ```go
> type MerchantResponse struct {
> Code string
> Message string
> Data interface{}
> }
>
> func (MerchantResponse) JavaClassName() string {
> return "com.xxx.common.Result"
> }
> ```
>
> 再通过反射处理Data
golang consumer 用这个是没问题的,golang 这边我再类型判定一下就可以了。
但是 golang provider 用这个范型不行,java 那边解析不出来,你是说让 java 那边再反射处理么?
这个恐怕不行,他们那边统一处理的,用的
org.apache.dubbo.config.annotation.DubboReference,恐怕是没办法做也不想做这样的特殊处理的。
--
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]