mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-04 23:09:34 +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)
|
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)
|
errInfo := constant.ToAPIErrWithErr(err)
|
||||||
*errCode = errInfo.ErrCode
|
commonResp.ErrCode = errInfo.ErrCode
|
||||||
*errMsg = errInfo.ErrMsg
|
commonResp.ErrMsg = errInfo.ErrMsg
|
||||||
|
commonResp.DetailErrMsg = err.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *groupServer) GetGroupApplicationList(ctx context.Context, req *pbGroup.GetGroupApplicationListReq) (resp *pbGroup.GetGroupApplicationListResp, 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