From 99c92a18fe0f34543b302b13487d2b9f63e5b86e Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Mon, 5 Jun 2023 18:12:42 +0800 Subject: [PATCH] CommonCallbackResp --- pkg/callbackstruct/common.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/callbackstruct/common.go b/pkg/callbackstruct/common.go index f87e7272c..11ff51deb 100644 --- a/pkg/callbackstruct/common.go +++ b/pkg/callbackstruct/common.go @@ -1,7 +1,6 @@ package callbackstruct import ( - "fmt" "github.com/OpenIMSDK/Open-IM-Server/pkg/errs" ) @@ -41,11 +40,12 @@ type CommonCallbackResp struct { ActionCode int `json:"actionCode"` ErrCode int32 `json:"errCode"` ErrMsg string `json:"errMsg"` + ErrDlt string `json:"errDlt"` } func (c CommonCallbackResp) Parse() error { if c.ActionCode != errs.NoError || c.ErrCode != errs.NoError { - return errs.NewCodeError(int(c.ErrCode), "Callback").Wrap(fmt.Sprintf("callback response error actionCode is %d, errCode is %d, errMsg is %s", c.ActionCode, c.ErrCode, c.ErrMsg)) + return errs.NewCodeError(int(c.ErrCode), c.ErrMsg).WithDetail(c.ErrDlt) } return nil }