Add GetPostsBefore() to plugin API (#9651)

Этот коммит содержится в:
Hanzei
2018-10-15 19:18:23 +02:00
коммит произвёл Carlos Tadeu Panato Junior
родитель a35a9b9b2d
Коммит 71b7b9f090
4 изменённых файлов: 64 добавлений и 0 удалений

Просмотреть файл

@@ -188,6 +188,9 @@ type API interface {
// GetPostsSince gets posts created after a specified time as Unix time in milliseconds.
GetPostsSince(channelId string, time int64) (*model.PostList, *model.AppError)
// GetPostsBefore gets a page of posts that were posted before the post provided.
GetPostsBefore(channelId, postId string, page, perPage int) (*model.PostList, *model.AppError)
// GetPostsForChannel gets a list of posts for a channel.
GetPostsForChannel(channelId string, page, perPage int) (*model.PostList, *model.AppError)