Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fabian Vitt
good2go
Commits
14df0059
Commit
14df0059
authored
Jun 04, 2020
by
Max Richter
Browse files
feat(model): add bson annotation to Building struct
parent
7f03058a
Changes
1
Hide whitespace changes
Inline
Side-by-side
internal/model/building.go
View file @
14df0059
...
...
@@ -12,11 +12,11 @@ import (
// singleton for now
type
Building
struct
{
ID
primitive
.
ObjectID
OpeningHour
time
.
Time
ClosingHour
time
.
Time
Workdays
[]
time
.
Weekday
Rooms
[]
*
Room
ID
primitive
.
ObjectID
`bson:"_id"`
OpeningHour
time
.
Time
`bson:"openingHours"`
ClosingHour
time
.
Time
`bson:"closingHours"`
Workdays
[]
time
.
Weekday
`bson:"workDays"`
Rooms
[]
*
Room
`bson:"rooms"`
}
// New creates a new building.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment