Files
RenewCMS/internal/domain/article/articleStoryList.go
T

45 lines
748 B
Go

package article
const (
TabAll = "all"
TabMissing = "missing"
)
type StoryFilters struct {
SkipMissing bool
OnlyOnline bool
VisibleTo *uint32
SiteID *uint32
Lang string
Missing bool
Status string
AuthorID *uint32
Q string
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"`
}