DMwangnima commented on issue #2410:
URL: https://github.com/apache/dubbo-go/issues/2410#issuecomment-1751901249
Consumer:
```java
public class TestLongReq implements Serializable {
private Long total;
public Long getTotal() {
return total;
}
public void setTotal(Long total) {
this.total = total;
}
}
public class TestLongResp implements Serializable {
private Long total;
public Long getTotal() {
return total;
}
public void setTotal(Long total) {
this.total = total;
}
}
TestLongResp TestLong(TestLongReq req) throws Exception;
```
Provider:
```go
type TestLongReq struct {
Total *int64
}
func (req *TestLongReq) JavaClassName() string {
return "org.apache.dubbo.samples.api.TestLongReq"
}
type TestLongResp struct {
Total *int64
}
func (req *TestLongResp) JavaClassName() string {
return "org.apache.dubbo.samples.api.TestLongResp"
}
func (u *UserProviderImpl) TestLong(ctx context.Context, req *TestLongReq)
(*TestLongResp, error) {
return &TestLongResp{Total: req.Total}, nil
}
dubbo:
protocols:
dubbo:
name: dubbo
port: 20001
provider:
services:
UserProviderImpl:
interface: org.apache.dubbo.samples.api.UserProvider
```
@yukinomiu This works fine.
--
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]