1
0
mirror of synced 2024-11-22 04:56:06 +03:00

improve channels request struct

This commit is contained in:
DmitryZagorulko 2019-01-16 16:49:41 +03:00
parent 5ee1c2dfd5
commit 9849d07c2e

View File

@ -176,14 +176,14 @@ type ChannelListItem struct {
// Channels request type // Channels request type
type Channels struct { type Channels struct {
ID int `url:"id"` ID int `url:"id" json:"id,omitempty"`
Types []string `url:"types"` Types []string `url:"types" json:"types,omitempty"`
Active bool `url:"active"` Active bool `url:"active" json:"active,omitempty"`
Since time.Time `url:"since"` Since time.Time `url:"since" json:"since,omitempty"`
Until time.Time `url:"until"` Until time.Time `url:"until" json:"until,omitempty"`
TransportID uint64 `url:"transport_id"` TransportID uint64 `url:"transport_id" json:"transport_id,omitempty"`
Sort string `url:"sort"` Sort string `url:"sort" json:"sort,omitempty"`
Limit int `url:"limit"` Limit int `url:"limit" json:"limit,omitempty"`
} }
// User struct // User struct