From 57440c5f840dd5d4dadd80f69467a3b1450e6027 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Tue, 19 Apr 2022 21:58:23 +0200 Subject: improve response display, now with 400% more unmarshalling (smith_v_0.1.0) --- gosrc/structs.go | 45 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 38 insertions(+), 7 deletions(-) (limited to 'gosrc/structs.go') 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 +} -- cgit v1.2.3