From 4a599b902dd4f2fefc4880555db301073d1410b0 Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Thu, 17 Oct 2024 12:49:51 +0300 Subject: [PATCH] define transaction --- internal/models/trackstatusresponse.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/internal/models/trackstatusresponse.go b/internal/models/trackstatusresponse.go index 6054281..1629a7c 100644 --- a/internal/models/trackstatusresponse.go +++ b/internal/models/trackstatusresponse.go @@ -5,6 +5,13 @@ import ( "time" ) +type Transaction struct { + CreatedAt time.Time `json:"createdAt"` + Status string `json:"status"` + TransferValue json.Number `json:"transferValue"` + TxHash string `json:"txHash"` + TxType string `json:"txType"` +} type TrackStatusResponse struct { Ok bool `json:"ok"` @@ -17,4 +24,4 @@ type TrackStatusResponse struct { TxType string `json:"txType"` } } `json:"result"` -} \ No newline at end of file +}