~evanj/cms

ref: 715dccc30b27b8e6bdd6330ff3d106e66f577087 cms/internal/m/contenttype/contenttype.go -rw-r--r-- 286 bytes
715dccc3Evan M Jones Fix(new*List): Remove error, remove panic when list is of size zero. 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package contenttype

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

type ContentType interface {
	ID() string
	Name() string
	Fields() []valuetype.ValueType
	FieldsWithRefCount() int
}

type ContentTypeList interface {
	List() []ContentType
	More() bool
	Last() ContentType
}