Added SearchPostsInTeamForUser for plugin API (#14807)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Maria A Nunez
2020-06-23 21:58:44 -04:00
коммит произвёл GitHub
родитель 7c4c038a96
Коммит 668a2aa856
6 изменённых файлов: 150 добавлений и 0 удалений

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

@@ -444,6 +444,12 @@ type API interface {
// Minimum server version: 5.10
SearchPostsInTeam(teamId string, paramsList []*model.SearchParams) ([]*model.Post, *model.AppError)
// SearchPostsInTeamForUser returns a list of posts by team and user that match the given
// search parameters.
// @tag Post
// Minimum server version: 5.26
SearchPostsInTeamForUser(teamId string, userId string, searchParams model.SearchParameter) (*model.PostSearchResults, *model.AppError)
// AddChannelMember joins a user to a channel (as if they joined themselves)
// This means the user will not receive notifications for joining the channel.
//