From bd04d7f75698c7b68434199208dc469021b823c2 Mon Sep 17 00:00:00 2001 From: Akash Srivastava Date: Wed, 10 Oct 2018 18:53:36 +0530 Subject: Add GetPostsForChannel method to plugin API (#9557) Signed-off-by: Akash Srivastava --- plugin/api.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugin/api.go') 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) -- cgit v1.2.3-1-g7c22