diff options
Diffstat (limited to 'gosrc/structs.go')
-rw-r--r-- | gosrc/structs.go | 45 |
1 files changed, 38 insertions, 7 deletions
diff --git a/gosrc/structs.go b/gosrc/structs.go index 3f2fa74..49843a0 100644 --- a/gosrc/structs.go +++ b/gosrc/structs.go @@ -6,13 +6,6 @@ package main -// config.json content -type Config struct { - Public_key string - Secret_key string - Mirror string -} - // urls to hit on mirror type Targets struct { getall string @@ -37,3 +30,41 @@ var POST_Targets = Targets { snapshot: "/null", null: "/null", } + +// config.json content +type Config struct { + Public_key string + Secret_key string + Mirror string +} + +// +// ---- responses ---- +// +type AccountStatusResponse struct { + Data string +} + +type AccountSnapshotResponseMain struct { + Code float64 + Msg string + SnapshotVos map[string]interface{} +} + +type AccountSnapshotResponseVos struct { + Data map[string]interface{} + Type string + UpdateTime float64 +} + +type AccountSnapshotResponseData struct { + Balances []interface{} + TotalAssetOfBtc float64 +} + +type DepositAddressResponse struct { + Address string + Coin string + Tag string + Url string +} |