maxapi: align fields

This commit is contained in:
c9s 2021-03-14 11:02:33 +08:00
parent be672c89e6
commit 877ea73435

View File

@ -118,7 +118,7 @@ type Deposit struct {
Fee string `json:"fee"`
TxID string `json:"txid"`
State string `json:"state"`
Confirmations string `json:"confirmations"`
Confirmations string `json:"confirmations"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
@ -187,10 +187,8 @@ func (s *AccountService) NewGetDepositHistoryRequest() *GetDepositHistoryRequest
}
}
type Withdraw struct {
UUID string `json:"uuid"`
UUID string `json:"uuid"`
Currency string `json:"currency"`
CurrencyVersion string `json:"currency_version"` // "eth"
Amount string `json:"amount"`
@ -203,10 +201,10 @@ type Withdraw struct {
// "failed", "pending", "confirmed",
// "kgi_manually_processing", "kgi_manually_confirmed", "kgi_possible_failed",
// "sygna_verifying"
State string `json:"state"`
Confirmations int `json:"confirmations"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
State string `json:"state"`
Confirmations int `json:"confirmations"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type GetWithdrawHistoryRequestParams struct {