-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataOrderOfService.go
More file actions
34 lines (29 loc) · 1.2 KB
/
dataOrderOfService.go
File metadata and controls
34 lines (29 loc) · 1.2 KB
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
26
27
28
29
30
31
32
33
34
package main
type ServiceItemType string
const (
SongServiceItemType ServiceItemType = "song"
ScriptureServiceItemType ServiceItemType = "scripture"
CategoryServiceItemType ServiceItemType = "category"
)
// ServiceItem represents a single item in an Order of Service.
type ServiceItem struct {
Title string `json:"title"` // Title of the item
Type ServiceItemType `json:"type"` // Song, Scripture, etc.
Meta ServiceItemMeta `json:"meta,omitempty"` // Meta data for the item
}
type ServiceItemMeta struct {
// Song Meta
SongId string `json:"songId,omitempty"`
// Scripture Meta
VerseReference string `json:"verseReference,omitempty"`
}
// SongServiceItem represents a single song in an Order of Service
// OrderOfService represents a single Order of Service.
// This of this as a single "slide show" that contains everything for a single day's service.
type OrderOfService struct {
SimpleWorshipDataType
Id string `json:"id"` // Unique ID of the item
Title string `json:"title"` // Title of the Order of Service
Date string `json:"date"` // Date of the Order of Service
Items []ServiceItem `json:"items"` // Items in the Order of Service
}