Mensa-API/models/day.go
2024-09-20 23:18:45 +02:00

15 lines
214 B
Go

package models
type Day struct {
DayName string
Menu []Menu
}
func (d *Day) SetDay(dayName string) {
d.DayName = dayName
}
func (d *Day) AddMenu(menu Menu) {
d.Menu = append(d.Menu, menu)
}