refactor: log change

Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com>
pull/823/head
Gordon 1 year ago
parent baa6c18f93
commit 383ae8e47e

@ -39,7 +39,13 @@ type Req struct {
}
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 {
@ -52,6 +58,12 @@ type Resp struct {
}
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)
}

Loading…
Cancel
Save