Add omitempty to channel settings
This commit is contained in:
parent
4e973592b2
commit
3f50782ad4
36
v1/types.go
36
v1/types.go
@ -76,40 +76,40 @@ type ChannelSettings struct {
|
|||||||
|
|
||||||
// Product type
|
// Product type
|
||||||
type Product struct {
|
type Product struct {
|
||||||
Creating string `json:"creating"`
|
Creating string `json:"creating,omitempty"`
|
||||||
Editing string `json:"editing"`
|
Editing string `json:"editing,omitempty"`
|
||||||
Deleting string `json:"deleting"`
|
Deleting string `json:"deleting,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Order type
|
// Order type
|
||||||
type Order struct {
|
type Order struct {
|
||||||
Creating string `json:"creating"`
|
Creating string `json:"creating,omitempty"`
|
||||||
Editing string `json:"editing"`
|
Editing string `json:"editing,omitempty"`
|
||||||
Deleting string `json:"deleting"`
|
Deleting string `json:"deleting,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status struct
|
// Status struct
|
||||||
type Status struct {
|
type Status struct {
|
||||||
Delivered string `json:"delivered"`
|
Delivered string `json:"delivered,omitempty"`
|
||||||
Read string `json:"read"`
|
Read string `json:"read,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ChannelSettingsText struct
|
// ChannelSettingsText struct
|
||||||
type ChannelSettingsText struct {
|
type ChannelSettingsText struct {
|
||||||
Creating string `json:"creating"`
|
Creating string `json:"creating,omitempty"`
|
||||||
Editing string `json:"editing"`
|
Editing string `json:"editing,omitempty"`
|
||||||
Quoting string `json:"quoting"`
|
Quoting string `json:"quoting,omitempty"`
|
||||||
Deleting string `json:"deleting"`
|
Deleting string `json:"deleting,omitempty"`
|
||||||
MaxCharsCount uint16 `json:"max_chars_count"`
|
MaxCharsCount uint16 `json:"max_chars_count,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ChannelSettingsFilesBase struct
|
// ChannelSettingsFilesBase struct
|
||||||
type ChannelSettingsFilesBase struct {
|
type ChannelSettingsFilesBase struct {
|
||||||
Creating string `json:"creating"`
|
Creating string `json:"creating,omitempty"`
|
||||||
Editing string `json:"editing"`
|
Editing string `json:"editing,omitempty"`
|
||||||
Quoting string `json:"quoting"`
|
Quoting string `json:"quoting,omitempty"`
|
||||||
Deleting string `json:"deleting"`
|
Deleting string `json:"deleting,omitempty"`
|
||||||
Max uint64 `json:"max_items_count"`
|
Max uint64 `json:"max_items_count,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// FullFileResponse uploaded file data
|
// FullFileResponse uploaded file data
|
||||||
|
Loading…
Reference in New Issue
Block a user