add EventHandlerRepo (probably has bugs)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user