|
|
@ -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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|