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:20:26 +03:00
parent 5c4b71dcf4
commit 5ee1c2dfd5

View File

@ -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"`
Types []string `json:"types,omitempty"` Types []string `url:"types"`
Active bool `json:"active,omitempty"` Active bool `url:"active"`
Since time.Time `json:"since,omitempty"` Since time.Time `url:"since"`
Until time.Time `json:"until,omitempty"` Until time.Time `url:"until"`
TransportID uint64 `json:"transport_id,omitempty"` TransportID uint64 `url:"transport_id"`
Sort string `json:"sort,omitempty"` Sort string `url:"sort"`
Limit int `json:"limit,omitempty"` Limit int `url:"limit"`
} }
// User struct // User struct