feat:#28 added api for eventTypes

This commit is contained in:
Elmar Kresse
2024-05-18 12:44:27 +02:00
parent 7c1b5aa45a
commit 0c71a0ce49
5 changed files with 74 additions and 2 deletions

View File

@@ -57,6 +57,10 @@ type Event struct {
models.BaseModel
}
type EventType struct {
EventType string `db:"EventType" json:"eventType"`
}
func (e *Event) Equals(event Event) bool {
return e.Day == event.Day &&
e.Week == event.Week &&