setup models for handling api responses

This commit is contained in:
Carlosokumu 2024-08-26 12:10:39 +03:00
parent 30504b81e2
commit ee649dc79e
Signed by: carlos
GPG Key ID: 7BD6BC8160A5C953

View File

@ -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"`
}