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

Merge pull request #46 from DmitryZagorulko/master

add omitempty url tag
This commit is contained in:
Alex Lushpai 2019-01-18 10:26:25 +03:00 committed by GitHub
commit 9ed2224eb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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