split response to reuse type
This commit is contained in:
parent
1c7c0acc88
commit
f986bd3066
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue