~evanj/cms

ref: 5eb977545bd0bfaacf289952a8b7f5a273168ab6 cms/internal/m/valuetype/valuetype.go -rw-r--r-- 643 bytes
5eb97754Evan M Jones Chore(Error2 -> Error): Swapped Error impl. for Error2 in all 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package valuetype

type ValueTypeEnum = string

const (
	StringSmall   ValueTypeEnum = "StringSmall"
	StringBig     ValueTypeEnum = "StringBig"
	InputHTML     ValueTypeEnum = "InputHTML"
	InputMarkdown ValueTypeEnum = "InputMarkdown"
	File          ValueTypeEnum = "File"
	Date          ValueTypeEnum = "Date"
	Reference     ValueTypeEnum = "Reference"
	ReferenceList ValueTypeEnum = "ReferenceList"

	// Possible fields for the future.
	// FileList      ValueTypeEnum = "FileList"
	// Bool      ValueTypeEnum = "bool"
	// InputJSON ValueTypeEnum = "InputJSON"
)

type ValueType interface {
	ID() string
	Type() ValueTypeEnum
	Name() string
}