split response to reuse type

This commit is contained in:
Niko Storni 2019-01-03 15:01:51 +01:00
parent 1c7c0acc88
commit f986bd3066

View file

@ -312,7 +312,7 @@ type ChannelNewResponse struct {
Txid string `json:"txid"` Txid string `json:"txid"`
} }
type ChannelListResponse []struct { type ChannelListSingleResponse struct {
Address string `json:"address"` Address string `json:"address"`
Amount decimal.Decimal `json:"amount"` Amount decimal.Decimal `json:"amount"`
BlocksToExpiration int `json:"blocks_to_expiration"` BlocksToExpiration int `json:"blocks_to_expiration"`
@ -334,6 +334,8 @@ type ChannelListResponse []struct {
Value *lbryschema.Claim `json:"value"` Value *lbryschema.Claim `json:"value"`
} }
type ChannelListResponse []ChannelListSingleResponse
type WalletListResponse []string type WalletListResponse []string
type PublishResponse struct { type PublishResponse struct {