Templates verbessert
This commit is contained in:
parent
56b4a3ab34
commit
e9e0cbf382
11 changed files with 53 additions and 42 deletions
|
@ -21,3 +21,7 @@ type OfficeHourRepository interface {
|
|||
Add(officeHour OfficeHour) (int, error)
|
||||
AllowedAt(date Date, duration int, room Room, activeOnly bool) (bool, error)
|
||||
}
|
||||
|
||||
func (officeHour OfficeHour) EndDate() Date {
|
||||
return GetEndDate(officeHour.Date, officeHour.Duration, false)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue