shenchao861129 opened a new issue #1780:
URL: https://github.com/apache/dubbo-go/issues/1780
// java
public class CommentServiceImpl implements CommentService {
public boolean isForbidsSpeak(Long bookId, Long userId);
public boolean isForbidsSpeak(Long bookId, Long userId, String ip);
......
}
// go
type CommentServiceProvider struct{}
func (p *CommentServiceProvider) IsForbidsSpeak(ctx context.Context, params
[]interface{}) (interface{}, error) {
l := len(params)
if l == 2 {
// TODO
} else if l == 3 {
// TODO
} else {
// TODO
}
return nil, nil
}
func (p *CommentServiceProvider) MethodMapper() map[string]string {
return map[string]string{
"IsForbidsSpeak": "isForbidsSpeak",
}
}
--
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]