add EventHandlerRepo (probably has bugs)

This commit is contained in:
2021-09-20 18:31:32 +02:00
parent b2c9cca400
commit 1cf8c019e5
5 changed files with 179 additions and 30 deletions
+3 -3
View File
@@ -19,10 +19,10 @@ type EventHandler struct {
}
type EventHandlerRepository interface {
FindByID(ctx context.Context, id int) (EventHandler, error)
FindByID(ctx context.Context, id int) (*EventHandler, error)
FetchAll(ctx context.Context) ([]EventHandler, error)
Save(ctx context.Context, handler *EventHandler)
Delete(ctx context.Context, handler *EventHandler)
Save(ctx context.Context, handler *EventHandler) error
Delete(ctx context.Context, handler *EventHandler) error
}
type EventCondition struct {