aboutsummaryrefslogtreecommitdiffstats
path: root/internal/notifier/notifier.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/notifier/notifier.go')
-rw-r--r--internal/notifier/notifier.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/internal/notifier/notifier.go b/internal/notifier/notifier.go
new file mode 100644
index 0000000..7ce94b0
--- /dev/null
+++ b/internal/notifier/notifier.go
@@ -0,0 +1,17 @@
+package notifier
+
+import (
+ "context"
+
+ chModel "donetick.com/core/internal/chore/model"
+ nModel "donetick.com/core/internal/notifier/model"
+ uModel "donetick.com/core/internal/user/model"
+)
+
+type Notifier interface {
+ SendChoreReminder(c context.Context, chore *chModel.Chore, users []*uModel.User)
+ SendChoreCompletion(c context.Context, chore *chModel.Chore, user *uModel.User)
+ SendChoreOverdue(c context.Context, chore *chModel.Chore, users []*uModel.User)
+ SendChorePreDue(c context.Context, chore *chModel.Chore, users []*uModel.User)
+ SendNotification(c context.Context, notification *nModel.Notification)
+}