~evanj/cms

ref: 5eb977545bd0bfaacf289952a8b7f5a273168ab6 cms/internal/m/content/content.go -rw-r--r-- 376 bytes
5eb97754Evan M Jones Chore(Error2 -> Error): Swapped Error impl. for Error2 in all 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package content

import (
	"git.sr.ht/~evanj/cms/internal/m/value"
)

type Content interface {
	ID() string
	Type() string // ContentType
	Values() []value.Value
	ValueByName(name string) (value.Value, bool)
	MustValueByName(name string) value.Value
}

type ContentList interface {
	List() []Content
	More() bool
	Before() int // Some table ID to fetch next set of results.
}