Made some changes to how index pages are made
This commit is contained in:
parent
ba12398d2f
commit
573517565d
14 changed files with 259 additions and 56 deletions
|
|
@ -15,6 +15,13 @@ const (
|
|||
DateNameProvenance NameProvenance = iota
|
||||
)
|
||||
|
||||
type PageRole int
|
||||
|
||||
const (
|
||||
NormalPageRole PageRole = iota
|
||||
IndexPageRole
|
||||
)
|
||||
|
||||
type Bundle struct {
|
||||
ID int64
|
||||
SiteID int64
|
||||
|
|
@ -30,11 +37,18 @@ type Page struct {
|
|||
Name string
|
||||
NameProvenance NameProvenance
|
||||
Title string
|
||||
Role int64
|
||||
Role PageRole
|
||||
Body string
|
||||
State PostState
|
||||
PageTypeID int64
|
||||
Props []byte
|
||||
PublishDate time.Time
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type BundleInfo struct {
|
||||
BundleID int64
|
||||
PageCount int
|
||||
IndexPageID int64
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue