Use Account struct instead of derived SingleAccountListResponse
This commit is contained in:
parent
3615ab5e55
commit
7220ec8943
2 changed files with 2 additions and 6 deletions
|
@ -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})
|
||||
}
|
||||
|
||||
|
|
|
@ -210,10 +210,6 @@ type AccountListResponse struct {
|
|||
LBCRegtest []Account `json:"lbc_regtest"`
|
||||
}
|
||||
|
||||
type SingleAccountListResponse struct {
|
||||
Account
|
||||
}
|
||||
|
||||
type AccountBalanceResponse string
|
||||
|
||||
type AccountCreateResponse struct {
|
||||
|
|
Loading…
Add table
Reference in a new issue