GH-9609: Add GetUsersInTeam in plugin API (#9642)

* add GetUsersInTeam in plugin api

* remove extra space in comment
This commit is contained in:
Daniel Hodan
2018-10-15 18:24:26 +02:00
committed by Christopher Speller
parent 9da4aba3f2
commit 3087f0bc4c
4 changed files with 63 additions and 0 deletions

View File

@@ -52,6 +52,9 @@ type API interface {
// GetUserByUsername gets a user by their username.
GetUserByUsername(name string) (*model.User, *model.AppError)
// GetUsersInTeam gets users in team.
GetUsersInTeam(teamId string, page int, perPage int) ([]*model.User, *model.AppError)
// UpdateUser updates a user.
UpdateUser(user *model.User) (*model.User, *model.AppError)