diff options
Diffstat (limited to 'store/store.go')
-rw-r--r-- | store/store.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/store/store.go b/store/store.go index ae938a797..7602be8f4 100644 --- a/store/store.go +++ b/store/store.go @@ -46,6 +46,7 @@ type Store interface { Emoji() EmojiStore Status() StatusStore FileInfo() FileInfoStore + Reaction() ReactionStore MarkSystemRanUnitTests() Close() DropAllTables() @@ -310,3 +311,10 @@ type FileInfoStore interface { AttachToPost(fileId string, postId string) StoreChannel DeleteForPost(postId string) StoreChannel } + +type ReactionStore interface { + Save(reaction *model.Reaction) StoreChannel + Delete(reaction *model.Reaction) StoreChannel + GetForPost(postId string) StoreChannel + DeleteAllWithEmojiName(emojiName string) StoreChannel +} |