From ce5be496f3f0de9715d99ec7870c7d9e3c929e21 Mon Sep 17 00:00:00 2001 From: linstohu Date: Thu, 28 Dec 2023 10:36:44 +0800 Subject: [PATCH] fix: htx response error code --- htx/utils/request.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htx/utils/request.go b/htx/utils/request.go index e1f1c73..a69dbbe 100644 --- a/htx/utils/request.go +++ b/htx/utils/request.go @@ -69,8 +69,10 @@ func (h *HTTPRequest) RequestBody() (string, error) { } type V1Response struct { - Status string `json:"messsage"` - Ch string `json:"ch"` + Status string `json:"status"` + Ch string `json:"ch"` + ErrCode string `json:"err-code,omitempty"` + ErrMsg string `json:"err-msg,omitempty"` } type V2Response struct {