mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
refactor: log change
Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com>
This commit is contained in:
parent
baa6c18f93
commit
383ae8e47e
@ -39,7 +39,13 @@ type Req struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *Req) String() string {
|
func (r *Req) String() string {
|
||||||
return utils.StructToJsonString(r)
|
var tReq Req
|
||||||
|
tReq.ReqIdentifier = r.ReqIdentifier
|
||||||
|
tReq.Token = r.Token
|
||||||
|
tReq.SendID = r.SendID
|
||||||
|
tReq.OperationID = r.OperationID
|
||||||
|
tReq.MsgIncr = r.MsgIncr
|
||||||
|
return utils.StructToJsonString(tReq)
|
||||||
}
|
}
|
||||||
|
|
||||||
type Resp struct {
|
type Resp struct {
|
||||||
@ -52,6 +58,12 @@ type Resp struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *Resp) String() string {
|
func (r *Resp) String() string {
|
||||||
|
var tResp Resp
|
||||||
|
tResp.ReqIdentifier = r.ReqIdentifier
|
||||||
|
tResp.MsgIncr = r.MsgIncr
|
||||||
|
tResp.OperationID = r.OperationID
|
||||||
|
tResp.ErrCode = r.ErrCode
|
||||||
|
tResp.ErrMsg = r.ErrMsg
|
||||||
return utils.StructToJsonString(r)
|
return utils.StructToJsonString(r)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user