diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-04-19 21:58:23 +0200 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-04-19 21:58:23 +0200 |
commit | 57440c5f840dd5d4dadd80f69467a3b1450e6027 (patch) | |
tree | 032b6a106abe534f2e9cb27deb653525bf42a34c /gosrc/structs.go | |
parent | refactor, readme, gui hooks, and more (diff) | |
download | smith-57440c5f840dd5d4dadd80f69467a3b1450e6027.tar.gz smith-57440c5f840dd5d4dadd80f69467a3b1450e6027.tar.bz2 smith-57440c5f840dd5d4dadd80f69467a3b1450e6027.tar.xz smith-57440c5f840dd5d4dadd80f69467a3b1450e6027.tar.zst smith-57440c5f840dd5d4dadd80f69467a3b1450e6027.zip |
improve response display, now with 400% more unmarshalling (smith_v_0.1.0)
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 +} |