Merge pull request #45 from DmitryZagorulko/master
improve channels request struct
This commit is contained in:
commit
aebb32c11f
16
v1/types.go
16
v1/types.go
@ -176,14 +176,14 @@ type ChannelListItem struct {
|
|||||||
|
|
||||||
// Channels request type
|
// Channels request type
|
||||||
type Channels struct {
|
type Channels struct {
|
||||||
ID int `json:"id,omitempty"`
|
ID int `url:"id" json:"id,omitempty"`
|
||||||
Types []string `json:"types,omitempty"`
|
Types []string `url:"types" json:"types,omitempty"`
|
||||||
Active bool `json:"active,omitempty"`
|
Active bool `url:"active" json:"active,omitempty"`
|
||||||
Since time.Time `json:"since,omitempty"`
|
Since time.Time `url:"since" json:"since,omitempty"`
|
||||||
Until time.Time `json:"until,omitempty"`
|
Until time.Time `url:"until" json:"until,omitempty"`
|
||||||
TransportID uint64 `json:"transport_id,omitempty"`
|
TransportID uint64 `url:"transport_id" json:"transport_id,omitempty"`
|
||||||
Sort string `json:"sort,omitempty"`
|
Sort string `url:"sort" json:"sort,omitempty"`
|
||||||
Limit int `json:"limit,omitempty"`
|
Limit int `url:"limit" json:"limit,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// User struct
|
// User struct
|
||||||
|
Loading…
Reference in New Issue
Block a user