mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-11-03 04:27:16 -05:00
Added omitempty, possibly fixes #57
This commit is contained in:
parent
4cd77b1239
commit
408cbd252a
@ -25,21 +25,21 @@ type CategoryModel struct {
|
||||
TopicCount int `json:"topic_count"`
|
||||
PostCount int `json:"post_count"`
|
||||
Position int `json:"position"`
|
||||
Description string `json:"description"`
|
||||
DescriptionText string `json:"description_text"`
|
||||
DescriptionExcerpt string `json:"description_excerpt"`
|
||||
TopicUrl string `json:"topic_url"`
|
||||
Description string `json:"description",omitempty`
|
||||
DescriptionText string `json:"description_text",omitempty`
|
||||
DescriptionExcerpt string `json:"description_excerpt",omitempty`
|
||||
TopicUrl string `json:"topic_url",omitempty`
|
||||
ReadRestricted bool `json:"read_restricted"`
|
||||
Permission int `json:"permission"`
|
||||
Permission int `json:"permission",omitempty`
|
||||
NotificationLevel int `json:"notification_level"`
|
||||
CanEdit bool `json:"can_edit"`
|
||||
TopicTemplate string `json:"topic_template"`
|
||||
HasChildren bool `json:"has_children"`
|
||||
SortOrder string `json:"sort_order"`
|
||||
SortAscending bool `json:"sort_ascending"`
|
||||
TopicTemplate string `json:"topic_template",omitempty`
|
||||
HasChildren bool `json:"has_children",omitempty`
|
||||
SortOrder string `json:"sort_order",omitempty`
|
||||
SortAscending bool `json:"sort_ascending",omitempty`
|
||||
ShowSubcategoryList bool `json:"show_subcategory_list"`
|
||||
NumFeaturedTopics int `json:"num_featured_topics"`
|
||||
DefaultView string `json:"default_view"`
|
||||
DefaultView string `json:"default_view",omitempty`
|
||||
SubcategoryListStyle string `json:"subcategory_list_style"`
|
||||
DefaultTopPeriod string `json:"default_top_period"`
|
||||
DefaultListFilter string `json:"default_list_filter"`
|
||||
@ -53,9 +53,9 @@ type CategoryModel struct {
|
||||
IsUncategorized bool `json:"is_uncategorized"`
|
||||
SubcategoryIDs []int `json:"subcategory_ids"`
|
||||
SubcategoryList []CategoryModel `json:"subcategory_list"`
|
||||
UploadedLogo string `json:"uploaded_logo"`
|
||||
UploadedLogoDark string `json:"uploaded_logo_dark"`
|
||||
UploadedBackground string `json:"uploaded_background"`
|
||||
UploadedLogo string `json:"uploaded_logo",omitempty`
|
||||
UploadedLogoDark string `json:"uploaded_logo_dark",omitempty`
|
||||
UploadedBackground string `json:"uploaded_background",omitempty`
|
||||
}
|
||||
|
||||
type CategoriesService interface {
|
||||
|
Loading…
Reference in New Issue
Block a user