summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
authorDaniel Hodan <daniel.hodan@czertbytes.de>2018-10-15 18:24:26 +0200
committerChristopher Speller <crspeller@gmail.com>2018-10-15 09:24:26 -0700
commit3087f0bc4c81a11ab3ecc08d3a37ea3d0dfda390 (patch)
tree0e2112cca64d067a3ed5f59af7232215565baabb /plugin/api.go
parent9da4aba3f2757bcbc2ebec2b1f95b6ef22b21912 (diff)
downloadchat-3087f0bc4c81a11ab3ecc08d3a37ea3d0dfda390.tar.gz
chat-3087f0bc4c81a11ab3ecc08d3a37ea3d0dfda390.tar.bz2
chat-3087f0bc4c81a11ab3ecc08d3a37ea3d0dfda390.zip
GH-9609: Add GetUsersInTeam in plugin API (#9642)
* add GetUsersInTeam in plugin api * remove extra space in comment
Diffstat (limited to 'plugin/api.go')
-rw-r--r--plugin/api.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/api.go b/plugin/api.go
index 7034cf3d0..004d4c1ff 100644
--- a/plugin/api.go
+++ b/plugin/api.go
@@ -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)