aboutsummaryrefslogtreecommitdiffstats
path: root/gosrc/structs.go
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-04-19 21:58:23 +0200
committersalaaad2 <arthurdurant263@gmail.com>2022-04-19 21:58:23 +0200
commit57440c5f840dd5d4dadd80f69467a3b1450e6027 (patch)
tree032b6a106abe534f2e9cb27deb653525bf42a34c /gosrc/structs.go
parentrefactor, readme, gui hooks, and more (diff)
downloadsmith-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.go45
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
+}