From ee649dc79e7af6a7c2d2e01ce25ac44f07ec4269 Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Mon, 26 Aug 2024 12:10:39 +0300 Subject: [PATCH] setup models for handling api responses --- internal/models/accountresponse.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 internal/models/accountresponse.go diff --git a/internal/models/accountresponse.go b/internal/models/accountresponse.go new file mode 100644 index 0000000..342de0a --- /dev/null +++ b/internal/models/accountresponse.go @@ -0,0 +1,20 @@ +package models + +import ( + "encoding/json" + "time" +) + + +type trackStatusResponse struct { + Ok bool `json:"ok"` + Result struct { + Transaction struct { + CreatedAt time.Time `json:"createdAt"` + Status string `json:"status"` + TransferValue json.Number `json:"transferValue"` + TxHash string `json:"txHash"` + TxType string `json:"txType"` + } + } `json:"result"` +} \ No newline at end of file