chore: implement reaction store

This commit is contained in:
Steven
2024-02-07 23:40:23 +08:00
parent 99568236a3
commit 559e427c50
11 changed files with 687 additions and 2 deletions

View File

@@ -91,4 +91,9 @@ type Driver interface {
ListWebhooks(ctx context.Context, find *FindWebhook) ([]*storepb.Webhook, error)
UpdateWebhook(ctx context.Context, update *UpdateWebhook) (*storepb.Webhook, error)
DeleteWebhook(ctx context.Context, delete *DeleteWebhook) error
// Reaction model related methods.
CreateReaction(ctx context.Context, create *storepb.Reaction) (*storepb.Reaction, error)
ListReactions(ctx context.Context, find *FindReaction) ([]*storepb.Reaction, error)
DeleteReaction(ctx context.Context, delete *DeleteReaction) error
}