package article const ( TabAll = "all" TabMissing = "missing" ) type StoryFilters struct { SkipMissing bool OnlyOnline bool VisibleTo *uint32 SiteID *uint32 Lang string Missing bool Status string SEOStatus string AuthorID *uint32 VersionIDs *[]uint32 Sort Sort Page int Size int } func (f StoryFilters) PerLanguage() bool { return f.Lang != "" && !f.Missing } type StoryRef struct { StoryID uint32 ArticleID uint32 } type StoryPage struct { Refs []StoryRef Total int } type StoryCounts struct { All int `json:"all"` Online int `json:"online"` Draft int `json:"draft"` Suggestions int `json:"suggestions"` Missing int `json:"missing"` }