mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-03 14:31:43 +08:00
groupCallback
This commit is contained in:
parent
6518473436
commit
b0cc8fe947
@ -787,10 +787,11 @@ func SetErrCodeMsg(ctx context.Context, funcName string, errCodeFrom int32, errM
|
||||
trace_log.SetContextInfo(ctx, funcName, constant.ToAPIErrWithErrCode(errCodeFrom), args)
|
||||
}
|
||||
|
||||
func SetErrorForResp(err error, errCode *int32, errMsg *string) {
|
||||
func SetErrorForResp(err error, commonResp *open_im_sdk.CommonResp) {
|
||||
errInfo := constant.ToAPIErrWithErr(err)
|
||||
*errCode = errInfo.ErrCode
|
||||
*errMsg = errInfo.ErrMsg
|
||||
commonResp.ErrCode = errInfo.ErrCode
|
||||
commonResp.ErrMsg = errInfo.ErrMsg
|
||||
commonResp.DetailErrMsg = err.Error()
|
||||
}
|
||||
|
||||
func (s *groupServer) GetGroupApplicationList(ctx context.Context, req *pbGroup.GetGroupApplicationListReq) (resp *pbGroup.GetGroupApplicationListResp, err error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user