diff options
author | Akash Srivastava <akashsrivastava4927@gmail.com> | 2018-10-10 18:53:36 +0530 |
---|---|---|
committer | Jesse Hallam <jesse.hallam@gmail.com> | 2018-10-10 09:23:36 -0400 |
commit | bd04d7f75698c7b68434199208dc469021b823c2 (patch) | |
tree | 9ff5c93919ff1780dbab140877a19a31f6fda5a2 /plugin/api.go | |
parent | bffcccf99de8a8f3c68cff9e39d2847f0996b67b (diff) | |
download | chat-bd04d7f75698c7b68434199208dc469021b823c2.tar.gz chat-bd04d7f75698c7b68434199208dc469021b823c2.tar.bz2 chat-bd04d7f75698c7b68434199208dc469021b823c2.zip |
Add GetPostsForChannel method to plugin API (#9557)
Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
Diffstat (limited to 'plugin/api.go')
-rw-r--r-- | plugin/api.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/api.go b/plugin/api.go index 80364c2af..308067228 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -173,6 +173,9 @@ type API interface { // GetPost gets a post. GetPost(postId string) (*model.Post, *model.AppError) + // GetPostsForChannel gets a list of posts for a channel. + GetPostsForChannel(channelId string, page, perPage int) (*model.PostList, *model.AppError) + // UpdatePost updates a post. UpdatePost(post *model.Post) (*model.Post, *model.AppError) |