define api structs

This commit is contained in:
Carlosokumu 2024-10-18 17:04:43 +03:00
parent 1c57c95d93
commit 353e24de33
Signed by: carlos
GPG Key ID: 7BD6BC8160A5C953
2 changed files with 7 additions and 13 deletions

View File

@ -1,15 +1,10 @@
package models
import (
"encoding/json"
)
type AccountResponse struct {
Ok bool `json:"ok"`
Result struct {
CustodialId json.Number `json:"custodialId"`
PublicKey string `json:"publicKey"`
TrackingId string `json:"trackingId"`
Ok bool `json:"ok"`
Description string `json:"description"` // Include the description field
Result struct {
PublicKey string `json:"publicKey"`
TrackingId string `json:"trackingId"`
} `json:"result"`
}
}

View File

@ -5,7 +5,6 @@ import (
"time"
)
type TrackStatusResponse struct {
Ok bool `json:"ok"`
Result struct {
@ -17,4 +16,4 @@ type TrackStatusResponse struct {
TxType string `json:"txType"`
}
} `json:"result"`
}
}