group rpc

This commit is contained in:
wangchuxiao
2023-01-09 17:04:43 +08:00
parent 5f48eeb74b
commit 6e8a2232a9
4 changed files with 524 additions and 1016 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ func SetErrorForResp(err error, commonResp *sdkws.CommonResp) {
commonResp.DetailErrMsg = err.Error()
}
func CommonResp2Err(resp sdkws.CommonResp) error {
func CommonResp2Err(resp *sdkws.CommonResp) error {
if resp.ErrCode != NoError {
return errors.New(fmt.Sprintf("call rpc error, errCode is %d, errMsg is %s, detailErrMsg is %s", resp.ErrCode, resp.ErrMsg, resp.DetailErrMsg))
}