Use Account struct instead of derived SingleAccountListResponse

This commit is contained in:
Andrey Beletsky 2019-05-22 11:40:18 +07:00
parent 3615ab5e55
commit 7220ec8943
2 changed files with 2 additions and 6 deletions

View file

@ -143,8 +143,8 @@ func (d *Client) AccountList() (*AccountListResponse, error) {
return response, d.call(response, "account_list", map[string]interface{}{})
}
func (d *Client) SingleAccountList(accountID string) (*SingleAccountListResponse, error) {
response := new(SingleAccountListResponse)
func (d *Client) SingleAccountList(accountID string) (*Account, error) {
response := new(Account)
return response, d.call(response, "account_list", map[string]interface{}{"account_id": accountID})
}

View file

@ -210,10 +210,6 @@ type AccountListResponse struct {
LBCRegtest []Account `json:"lbc_regtest"`
}
type SingleAccountListResponse struct {
Account
}
type AccountBalanceResponse string
type AccountCreateResponse struct {